def index #some stuff breakpoint #some more stuff end
This will let you stop at breakpoint (with script/breakpointer) and inspect anything you want, however you cannot step through your code. mark
def index #some stuff breakpoint #some more stuff end
This will let you stop at breakpoint (with script/breakpointer) and inspect anything you want, however you cannot step through your code. mark
Tks Mark - I’ll try this this evening
Is the concept that this then stops the console I’m running webbrick in, after which I can issue ruby commands is it? Can I issue a CONTINUE to keep things moving after I’ve done a brief manual inspection?
Greg H <greg.hauptmann.ruby@...> writes:
Tks Mark - I'll try this this eveningIs the concept that this then stops the
console I'm running webbrick in, after which I can issue ruby commands is it?
Can I issue a CONTINUE to keep things moving after I've done a brief manual
inspection?
Almost.
If you run ./script/breakpointer (or 'ruby script\breakpointer' on win32) while the server is running, then when a breakpoint is hit you will be dropped into an irb session in the console where the breakpointer is running. The server will freeze until the breakpointer session is closed using 'exit' or Ctrl-D. You can do all the inspection and stuff you like from that breakpoint
Gareth