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

Fix appearance of "Stop by~" #83

Merged
merged 1 commit into from
Jun 15, 2021
Merged

Conversation

ono-max
Copy link
Collaborator

@ono-max ono-max commented Jun 11, 2021

swap locations of variables "bp" and "i"

Now

[2, 11] in target.rb
      2|   class Bar
      3|     def self.a
      4|       "hello"
      5|     end
      6|     def b(n)
=>    7|       2.times do
      8|         n
      9|       end
     10|     end
     11|   end
=>#0	Foo::Bar#b(n=1) at target.rb:7
  #1	<module:Foo> at target.rb:19
  #2	<main> at target.rb:1

Stop by # BP - Check  n==1 0

What I expect

[2, 11] in target.rb
      2|   class Bar
      3|     def self.a
      4|       "hello"
      5|     end
      6|     def b(n)
=>    7|       2.times do
      8|         n
      9|       end
     10|     end
     11|   end
=>#0	Foo::Bar#b(n=1) at target.rb:7
  #1	<module:Foo> at target.rb:19
  #2	<main> at target.rb:1

Stop by #0  BP - Check  n == 1

lib/debug/session.rb Outdated Show resolved Hide resolved
@ono-max ono-max closed this Jun 12, 2021
@ono-max ono-max reopened this Jun 12, 2021
@ono-max ono-max closed this Jun 12, 2021
@ono-max ono-max reopened this Jun 12, 2021
Co-authored-by: Stan Lo <stan001212@gmail.com>
@ono-max
Copy link
Collaborator Author

ono-max commented Jun 12, 2021

Don't mind closing pull request. It was just my mistake.

@ko1 ko1 merged commit 5929d24 into ruby:master Jun 15, 2021
@ono-max ono-max deleted the fix-style-of-breakpoint branch June 17, 2021 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants