|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--pnuts.lang.Runtime | +--pnuts.tools.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 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.
Constructor Summary | |
TerminalDebugger()
|
|
TerminalDebugger(java.io.Reader reader)
|
Method Summary | |
Context |
createContext()
Create a context |
void |
signal(CommandEvent event)
Some kind of event raised, e.g. |
Methods inherited from class pnuts.lang.Runtime |
arrayType,
assignRange,
binary,
call,
callConstructor,
callConstructor,
callConstructor,
callFunction,
callMethod,
callMethod,
callMethod,
cast,
catchException,
checkException,
checkException,
compareTo,
escape,
exec,
execute,
fileToURL,
format,
getBeginLine,
getBottomType,
getCompiledScript,
getEndLine,
getField,
getFunction,
getFunction,
getFunctions,
getIndex,
getRuntime,
getScriptSource,
getScriptURL,
getStaticField,
isArray,
jump,
matchType,
namespaceRefreshed,
newInstance,
parseChar,
parseFloat,
parseInt,
parseString,
primitive,
printError,
putField,
putStaticField,
quantity,
range,
readSymbolTable,
setLine,
setLine,
setPackage,
transform,
unary,
writeSymbolTable |
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 inMethod Detail |
public Context createContext()
public void signal(CommandEvent event)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |