server-debug
Read when an app you deploy misbehaves on a live server and Telemetry's warnings and errors don't say why, to read its debug logs, see its processes or trace a function as it runs.
SKILL.mdapps/server-debug/SKILL.md
GitHubErlang's own ways of looking into a running app, for a server nothing attaches to as a node: Logger, observer_cli's
process list and :recon_trace. Start with Telemetry (errors, trace): it keeps every call's span and every
warning and error. Reach for these when that isn't enough.
logsfollows what the app says toLogger, every level from debug up, which Telemetry doesn't keep. The first call starts following (minutes,lines) and answers what's said withinwaitseconds; call the app, thenlogsagain for what it said.stopends it early. Each call waits 25 seconds at most, so any MCP client's timeout holds.processeslists its processes as observer_cli does: memory, reductions, message queue and current function, the toptopbysort, and the ETS tables they own. A queue that grows or memory that climbs is where to look.traceruns:recon_trace.callson onefunctionof amodule(as the app wrote it), or all of the module's, forcallscalls orseconds, showing each call's arguments and what it returned or raised. Call the app while it runs, from another shell or agent. Recon's limit counts everyone's calls, so a trace of a function that's called a lot stops early, and the server carries on. One trace runs on a server at a time.
Who may: an editor of the app, as for deploying it. You see only calls running for you, or for subject, a group or
the network you own, since what a call was given is its person's. Its processes kept between calls are shown where
everyone it's installed for is subject. An app that says it's sensitive (Vault, Encryption, Sign-in) is never looked
into. For an untrusted app the same tools look inside its sandbox's VM on that server, which a call starts.
Each server runs its own calls: server names which to look on, by its machine's name; left out, it's one that
runs the app. The answer says which. A follow is on one server, and a client may ask another next time, so pass
the server the first answer names to each logs call after it, and call the app through that one too where
you can.
On a network on your own machine (tooling/network), attach to the server with iex --remsh instead.