UNDER CONSTRUCTION
Debugger is separated into two parts: Java (implements Netbeans Debugger Core API and Debugger Core - UI) and Tcl part (debugServer.tcl). Java part communicates with debugServer.tcl using socket and simple "newline" based protocol. To handle script execution Tcl's trace and info are used.
To start debug process use Debug Project (Ctrl+F5) then following state will appear:
Netbeans window after Debug Project (Ctrl+F5): |
---|
Tclsh executes debugServer.tcl. It's waiting for connection from Netbeans Interface. Click any (except Stop) debugger control button to make a connection. debugServer.tcl will put appropriate information. Execution stops at the very first step of script. Now use debugger interface to control debug process.
After connection: |
---|
From the left side:
Set breakpoint by click line number inside editor. Using Breakpoints View you could Jump To place where selected breakpoint is located or Delete one.
Breakpoints View |
---|
Formatted content of [info locals%|%[info locals] and [info globals%|%[info globals]. Using the diamond with plus (on the left side of Variables View) - a Watch could be added. Other diamonds may be used to show watches inside Variables View or Evaluation Result (Evaluation is unused).
Variables View |
---|
Appears as a separate window when Show Watches Inside Variables View option (inside Variables View) is disabled.
Watches View |
---|
Call Stack View |
---|