# Debug commands :id=top

------

> _Doc Ver:_ 1.1  
_App Ver:_ 2.6.6.53  
_Date:_ 09/03/2026

------

> Debugging commands work on the SA1 command plane (`127.0.0.1:7090`) and in Menu > Tools > Debug (through `sa-web`, after `/login`).  
> Batch commands with `;`.  
> `*CHS!` / `*CHW!` are **not** accepted from the browser. Use `:DATA:ODT OS` / `:DATA:ODT WAV`. Do not send `:CMD?` shell strings.

------

|#|Command|Description|
|---|----------|--------------|
|1|Switch command|
|1.1|```:SYS:DEBUG?```|Query whether the system is in debugging mode.|
|   |```:DEBUG?```|
|1.2|```:SYS:DEBUG:ON```|Set the system to debug mode.|
|   |```:DEBUG:ON```|
|1.3|```:SYS:DEBUG:OFF```|Turn off system debugging mode.|
|   |```:DEBUG:OFF```|
|1.4|```:SYS:DEBUG:CLS```|Clear the output cache in debug mode.|
|   |```:DEBUG:CLS```|
||
|2|Associated command|
|2.1|```SLEEP:XX```|Sleep instruction, 'XX' is a millisecond value, which is used to wait for the device to return or restart before execution.|
|2.2|```PRINT:XX```|When executing in batch, specify to output the result of the 'XX' command.|
||
|3|Equipment command|
|3.1|```*CFG!;```|Turn on configuration.|
|3.2|```*RGB?;```|Query configuration parameter string in JSON format. The old command is "```*RGB!;```".|
|3.3|```*RGB:{"XXX":YYY};```|Set the parameter string; 'XXX': item name; 'YYY': value to set.|
|3.4|```*SAV!;```|Save the configuration and exit. The equipment will restart and run automatically after 5 seconds.|
|3.5|```*PAU!;```|Pause command for switching spectral and wavelength.|
|3.6|```*CHS!;```|Hardware: spectrum mode. **Not** via the browser gateway — use `:DATA:ODT OS`.|
|3.7|```*CHW!;```|Hardware: wavelength mode. **Not** via the browser gateway — use `:DATA:ODT WAV`.|
|3.8|```*RST!;```|Hardware reset. Advanced → Watchdog (factory on) sends this to the **locked 8190 source IP** on UDP 8193 when that path has no task data and the command port is not in a config/detect session. Never broadcast. Turn off with `WD_ENABLE`. Save → `:SYS:RELOAD`. Full: [Device reset watchdog](device-rst.md).|
||
|4|Hot reload|
|4.1|```:SYS:RELOAD```|Re-read persist. Addon Modbus Save AfterCfg is this command; TCP 1502 starts/stops without restarting sa-di. Watchdog Enable / reset command also reload here. Do not `killall -9`. Handbook: [Modbus TCP slave](modbus_tcp_slave.md) · [Device reset watchdog](device-rst.md).|

------

### [Top](#top)
