Next: Debug Methods, Up: The Debug Server [Contents]
Clients connect with a GDBus address of the form
tcp:host=HOST,port=PORT. With an empty
debug-auth-token the endpoint stays open; when a token is set,
clients must call Authenticate before other methods
(see debug-auth-token). Once connected, register on:
Object path/org/starter/core/debug
Interfaceorg.starter.Core.Debug
The exact client address string is also reported by GetStatus under
the client-address key (useful when the bind used port 0 and
the kernel picked an ephemeral port).
Optional shared-token auth uses gsettings
org.starter.core debug-auth-token or --debug-auth-token
(CLI wins). It is independent from peer auth-token: set both to the
same value if you want one secret, or leave debug empty while locking
peers. Failed Authenticate drops the TCP connection. Tools such as
starter-debugger (--auth-token) and
starter-explain (--auth-token or stex
auth-token) must send the matching secret.