Displaying 1 result from an estimated 1 matches for "stop_debug".
Did you mean:
smp_debug
2006 Jul 05
2
Rails debugging - a (slightly) better approach?
...cannot work), such as traversing the
call stack and evaluating expressions in the scope of higher-level stack
frames. Apart from that, I can list the source code, step into and over
method calls and inspect everything.
A problem is that after the section of code to be debugged, I also need
a "stop_debug" statement, which removes the trace func so things speed
up again.
Code is available at:
http://www.muermann.org/ruby/mydebug.rb
To give it a try, drop the file in the lib directory of your app and
start the server with:
Ruby -r lib/mydebug
Then, add start_debug/stop_debug commands to the c...