Debug

Get debug logs

Code samples

curl $CODER_AGENT_DEBUG_ADDRESS/debug/logs

GET /debug/logs

Get the first 10MiB of data from $CODER_AGENT_LOG_DIR/coder-agent.log.

Responses

StatusMeaningDescriptionSchema
200OKOK

Get debug info for magicsock

Code samples

curl $CODER_AGENT_DEBUG_ADDRESS/debug/magicsock

GET /debug/magicsock

See Tailscale's documentation.

Toggle debug logging for magicsock

Code samples

curl $CODER_AGENT_DEBUG_ADDRESS/debug/magicsock/debug-logging/true

GET /debug/magicsock/debug-logging/{state}

Set whether debug logging is enabled. See Tailscale's documentation for more information.

Parameters

NameInTypeRequiredDescription
statepathbooleantrueDebug logging state

Responses

StatusMeaningDescriptionSchema
200OKOK

Get debug manifest

Code samples

curl $CODER_AGENT_DEBUG_ADDRESS/debug/manifest

GET /debug/manifest

Get the manifest the agent fetched from coderd upon startup.

Responses

StatusMeaningDescriptionSchema
200OKOKagentsdk.Manifest
See an opportunity to improve our docs? Make an edit.