| View previous topic :: View next topic |
| Author |
Message |
Stephen Bannasch Posted via mailing list.
|
Posted: Mon Dec 29, 2008 8:07 am Post subject: is there a way to evaulate ad hoc code in the ruby debugger |
|
|
When I use the ruby command line debugger I can execute ad hoc code
in any context I can get the debugger to stop at -- can I do that
with the ruby debugger in NB v7?
I'm using netbeans-hudson-trunk-4693-ruby.zip
and following Martin's instructions here:
http://blogs.sun.com/martink/entry/remote_debugging_debug_whatever_ruby
I don't see any window or way to evaluate ad hoc code when running
the debugger. |
|
| Back to top |
|
 |
Martin Krauskopf Posted via mailing list.
|
Posted: Mon Dec 29, 2008 11:39 am Post subject: is there a way to evaulate ad hoc code in the ruby debugger |
|
|
Stephen Bannasch wrote:
| Quote: | When I use the ruby command line debugger I can execute ad hoc code in
any context I can get the debugger to stop at -- can I do that with the
ruby debugger in NB v7?
|
You can, also in 6.5, but just one-liner. Just add a new watch(es)
('Menu | Debug | New Watch' or C-S-F7 (Linux/Win)) and it is evaluated
to fresh value after each debugger suspension.
m. |
|
| Back to top |
|
 |
Stephen Bannasch Posted via mailing list.
|
Posted: Tue Dec 30, 2008 2:35 am Post subject: is there a way to evaulate ad hoc code in the ruby debugger |
|
|
| Quote: | Stephen Bannasch wrote:
| Quote: | When I use the ruby command line debugger I can execute ad hoc code
in any context I can get the debugger to stop at -- can I do that
with the ruby debugger in NB v7?
|
You can, also in 6.5, but just one-liner. Just add a new watch(es)
('Menu | Debug | New Watch' or C-S-F7 (Linux/Win)) and it is
evaluated to fresh value after each debugger suspension.
|
Thanks for that tip.
I know may Ruby folks don't use a debugger but I like using it a
great deal from helping me figure out what I don't understand.
When I use the debugger from the command line in MRI I often find
myself wanting to explore the objects -- but this is ad hoc -- not
usually something I need evaluated whenever the debugger stops (that
is also useful but different).
I know I can do that in Eclipse when debugging Java -- it gives me
in-effect a 1-line console window I can use to interact with the
context at that point. |
|
| Back to top |
|
 |
Stephen Bannasch Posted via mailing list.
|
Posted: Tue Dec 30, 2008 2:48 am Post subject: is there a way to evaulate ad hoc code in the ruby debugger |
|
|
Please ignore my atrocious spelling in the previous message.
One of the uses for an interactive console when the debugger has
stopped that I find helpful is to find out the methods available on
an object. When I am looking at someone elses code and there is a
bunch of Ruby meta-programming going on it can be helpful to use
method name completion for one of the in-scope objects in a console
to see what that object has turned into. |
|
| Back to top |
|
 |
Martin Krauskopf Posted via mailing list.
|
Posted: Tue Dec 30, 2008 6:42 am Post subject: is there a way to evaulate ad hoc code in the ruby debugger |
|
|
Stephen Bannasch wrote:
| Quote: | | Quote: | Stephen Bannasch wrote:
| Quote: | When I use the ruby command line debugger I can execute ad hoc code
in any context I can get the debugger to stop at -- can I do that
with the ruby debugger in NB v7?
|
You can, also in 6.5, but just one-liner. Just add a new watch(es)
('Menu | Debug | New Watch' or C-S-F7 (Linux/Win)) and it is evaluated
to fresh value after each debugger suspension.
|
Thanks for that tip.
I know may Ruby folks don't use a debugger but I like using it a great
deal from helping me figure out what I don't understand.
When I use the debugger from the command line in MRI I often find myself
wanting to explore the objects -- but this is ad hoc -- not usually
something I need evaluated whenever the debugger stops (that is also
useful but different).
I know I can do that in Eclipse when debugging Java -- it gives me
in-effect a 1-line console window I can use to interact with the context
at that point.
|
Aha, I see, I've misunderstood you. This is on plan:
http://www.netbeans.org/issues/show_bug.cgi?id=107761
(you might CC yourself there to watch the progress)
But debugger has switched to a kind of maintenance mode for a while.
Depending on other works, this would be the first thing on the list[1],
if I get to more debugger features for 7.0 time-frame.
m.
[1]
http://wiki.netbeans.org/RubyNextReleasePlan#section-RubyNextReleasePlan-PlannedForNextReleaseS |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|