|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpnuts.tools.TerminalDebugger
public class TerminalDebugger
This class implements a debugger for Pnuts interpreter. It is used through pnuts -d command.
Commands:
stop at [FILE:]LINENO
Stop execution at the LINENO
stop in FUNC[:NARGS]
Stop execution when FUNC is called.
When NARGS is specified, stop when FUNC with NARGS is called.
clear
Clear all breakpoints
cont
Continue execution
trace
Toggle trace mode
trace function [FUNC]
Toggle function call trace mode
step [NUM]
Single step NUM lines. The default number is 1.
step up
Step out of the current function
next [NUM]
Step NUM line (step OVER calls). The default number is 1.
help
Print a summary of commands
?
Same as help.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
TerminalDebugger()
|
|
TerminalDebugger(java.io.Reader reader)
|
|
| Method Summary | |
|---|---|
void |
clearBreakPoints()
Remove all breakpoints |
Context |
createContext()
Create a context |
void |
removeBreakPoint(java.lang.Object source,
int lineno)
Remove a breakpoint |
void |
setBreakPoint(java.lang.Object file,
int lineno)
Sets a breakpoint at the specified position |
void |
setBreakPointInFunction(java.lang.String func_name)
|
void |
setBreakPointInFunction(java.lang.String func_name,
int nargs)
|
void |
signal(CommandEvent event)
Some kind of event raised, e.g. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TerminalDebugger()
public TerminalDebugger(java.io.Reader reader)
reader - debug script to read in| Method Detail |
|---|
public Context createContext()
ContextFactory
createContext in interface ContextFactory
public void setBreakPoint(java.lang.Object file,
int lineno)
setBreakPoint in interface Debuggerfile - the script filelineno - the line numberpublic void setBreakPointInFunction(java.lang.String func_name)
public void setBreakPointInFunction(java.lang.String func_name,
int nargs)
public void removeBreakPoint(java.lang.Object source,
int lineno)
Debugger
removeBreakPoint in interface Debuggerpublic void clearBreakPoints()
Debugger
clearBreakPoints in interface Debuggerpublic void signal(CommandEvent event)
CommandListener
signal in interface CommandListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||