ECAL comes with extensive debugging support featuring:
- Breakpoints
The simplest way to debug a given program is to run the interpreter in debug mode.
ecal debug
The interpreter can also start a telnet like debug server.
ecal debug -server
Note: The debug server is not secured and will run any code which is passed to it.
Get environment information.
Example:
## info
Set a break point to a specific line or identifier.
Parameter | Description |
---|---|
file and line number as file:line / identifier |
Line or identifier which should trigger the breakpoint. |
Example:
## break 5
Check all running threads if a breakpoint has been reached and the execution has been halted.
Example:
## status
Show the context of a breakpoint if the execution has been halted.
Parameter | Description |
---|---|
thread ID | Thread ID of a halted thread. |
Example:
## inspect 123
Continue the execution of a halted thread.
Parameter | Description |
---|---|
thread ID | Thread ID of a halted thread. |
Example:
## cont