[Objectscript-users] command line debugger
Brought to you by:
rob_d_clark
From: Lysander D. <sa...@sb...> - 2005-11-27 06:54:52
|
Hi Rob, I have made some modifications to the previous dbg.os you previously posted. Here is the help for it: objectsript command line debugger help continue - continue execution ( synonym "c" ) step - single step ( synonym "s" ) next - Next, steps over subs ( synonym "n" ) where - stack trace ( synonym "T" ) up - change context to higher stack frame ( synonym "u" ) down - change context to lower stack frame ( synonym "d" ) list [file][:[line][:length]] - list the [file] at [line] with [length] number of lines b [[file][:line]] - set a breakpoint. If [file] is not specified, a breakpoint is set at the curent debug stack frame b list - list breakpoints d index - delete breakpoint at specified breakpoint index help - this message ( synonym "h" ) exit - exit debugging session ( synonym "x", "quit", "q") Aside from the os file, some changes in Debugger.java were necessary in order to get the "next" command to work ( see included patch "debugger.pat" ). I realize that a lot of it is kind of hacky but hopfully you can indicate what changes should be made so that it can eventually be included as a part of the objectscritpt distribution. ( Two things I can think of offhand are 1. add a command line flag to add a step breakpoint so that it will not be necessary to modify os code to get the first breakpoint 2. add a return command to continue until the current function returns. ) By the way, is an emacs mode for javascript available ? Thanks, Lysander |