| java.lang.Object pnuts.tools.TerminalDebugger
TerminalDebugger | public class TerminalDebugger implements Debugger,ContextFactory(Code) | | 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.
|
TerminalDebugger | public TerminalDebugger()(Code) | | |
TerminalDebugger | public TerminalDebugger(Reader reader)(Code) | | Parameters: reader - debug script to read in |
checkBreakPoint | boolean checkBreakPoint(Vector lines, int nodeID, int begin, int end)(Code) | | |
clearBreakPoints | public void clearBreakPoints()(Code) | | |
removeBreakPoint | public void removeBreakPoint(Object source, int lineno)(Code) | | |
setBreakPoint | public void setBreakPoint(Object file, int lineno)(Code) | | Sets a breakpoint at the specified position
Parameters: file - the script file Parameters: lineno - the line number |
setBreakPointInFunction | public void setBreakPointInFunction(String func_name)(Code) | | |
setBreakPointInFunction | public void setBreakPointInFunction(String func_name, int nargs)(Code) | | |
setInput | void setInput(BufferedReader reader)(Code) | | Parameters: reader - The target script to be tested |
|
|