Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjusting the frame has no effect #1

Closed
stephenprater opened this issue Aug 10, 2011 · 1 comment
Closed

adjusting the frame has no effect #1

stephenprater opened this issue Aug 10, 2011 · 1 comment

Comments

@stephenprater
Copy link

Attempting to adjust the frame using up, down, or frame does not change the current frame. I am attempting to debug a task running within an IRB session.

Output of running these commands using ruby-debug-ide with -d:

Processing: where
Processing context: where
<frames>
<frame no='1' file='/Users/stephenprater/Sites/datatron/lib/datatron/translator.rb' line='168' current='true' />
<frame no='2' file='/Users/stephenprater/Sites/datatron/lib/datatron/translator.rb' line='193' />
<frame no='3' file='/opt/local/lib/ruby1.9/1.9.1/irb/workspace.rb' line='0' />
<frame no='4' file='/opt/local/lib/ruby1.9/1.9.1/irb/workspace.rb' line='80' />
<frame no='5' file='/opt/local/lib/ruby1.9/1.9.1/irb/context.rb' line='254' />
<frame no='6' file='/opt/local/lib/ruby1.9/1.9.1/irb.rb' line='159' />
<frame no='7' file='/opt/local/lib/ruby1.9/1.9.1/irb/ruby-lex.rb' line='156' />
<frame no='8' file='/opt/local/lib/ruby1.9/1.9.1/irb/ruby-lex.rb' line='229' />
<frame no='9' file='/opt/local/lib/ruby1.9/1.9.1/irb/ruby-lex.rb' line='228' />
<frame no='10' file='/opt/local/lib/ruby1.9/1.9.1/irb.rb' line='155' />
<frame no='11' file='/opt/local/lib/ruby1.9/1.9.1/irb.rb' line='70' />
<frame no='12' file='/opt/local/lib/ruby1.9/1.9.1/irb.rb' line='69' />
<frame no='13' file='/opt/local/lib/ruby1.9/gems/1.9.1/gems/railties-3.0.7/lib/rails/commands/console.rb' line='44' />
<frame no='14' file='/opt/local/lib/ruby1.9/gems/1.9.1/gems/railties-3.0.7/lib/rails/commands/console.rb' line='8' />
<frame no='15' file='/Users/stephenprater/Sites/agrport/script/rails' line='23' />
<frame no='16' file='/Users/stephenprater/Sites/agrport/script/rails' line='6' />
</frames>
:RdProcessing: frame -2
Processing context: frame -2
Selected frame no 14
Processing: up
Processing context: up
Selected frame no 1
Processing: up
Processing context: up
Selected frame no 1
Processing: up
Processing context: up
Selected frame no 1
Processing: where
Processing context: where
<frames>
<frame no='1' file='/Users/stephenprater/Sites/datatron/lib/datatron/translator.rb' line='168' current='true' />
<frame no='2' file='/Users/stephenprater/Sites/datatron/lib/datatron/translator.rb' line='193' />
<frame no='3' file='/opt/local/lib/ruby1.9/1.9.1/irb/workspace.rb' line='0' />
<frame no='4' file='/opt/local/lib/ruby1.9/1.9.1/irb/workspace.rb' line='80' />
<frame no='5' file='/opt/local/lib/ruby1.9/1.9.1/irb/context.rb' line='254' />
<frame no='6' file='/opt/local/lib/ruby1.9/1.9.1/irb.rb' line='159' />
<frame no='7' file='/opt/local/lib/ruby1.9/1.9.1/irb/ruby-lex.rb' line='156' />
<frame no='8' file='/opt/local/lib/ruby1.9/1.9.1/irb/ruby-lex.rb' line='229' />
<frame no='9' file='/opt/local/lib/ruby1.9/1.9.1/irb/ruby-lex.rb' line='228' />
<frame no='10' file='/opt/local/lib/ruby1.9/1.9.1/irb.rb' line='155' />
<frame no='11' file='/opt/local/lib/ruby1.9/1.9.1/irb.rb' line='70' />
<frame no='12' file='/opt/local/lib/ruby1.9/1.9.1/irb.rb' line='69' />
<frame no='13' file='/opt/local/lib/ruby1.9/gems/1.9.1/gems/railties-3.0.7/lib/rails/commands/console.rb' line='44' />
<frame no='14' file='/opt/local/lib/ruby1.9/gems/1.9.1/gems/railties-3.0.7/lib/rails/commands/console.rb' line='8' />
<frame no='15' file='/Users/stephenprater/Sites/agrport/script/rails' line='23' />
<frame no='16' file='/Users/stephenprater/Sites/agrport/script/rails' line='6' />
</frames>
@denofevil
Copy link
Member

Stephen, basically it works just a little bit different from what you're expecting. If you want to do something with selected frame, it should come together in one command like that:
frame -2; var local
All of this gem clients rely on current behaviour, so I don't think this could be changed

You can take a look at java command factory http://debug-commons.rubyforge.org/svn/intermediate-java/trunk/src/org/rubyforge/debugcommons/RubyDebugCommandFactory.java for examples of commands

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants