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

show the main object for toplevel #110

Merged
merged 1 commit into from
Aug 7, 2017

Conversation

ViugiNick
Copy link
Collaborator

It can sometimes be useful, especially making the display more consistent for different classes and reduces the number of 'inspect' calls

@@ -129,7 +129,7 @@ def execute
locals = @state.context.frame_locals(@state.frame_pos)
_self = @state.context.frame_self(@state.frame_pos)
begin
locals['self'] = _self unless "main" == _self.to_s
locals['self'] = _self
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@denofevil I feel this design is OK (and compliant to what's available at runtime), please verify it's OK for you

@valich valich merged commit 0e58fa4 into ruby-debug:master Aug 7, 2017
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

Successfully merging this pull request may close these issues.

2 participants