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 bug that line numbers can not be retrieved from Chrome's requests #337

Merged
merged 1 commit into from
Oct 25, 2021

Conversation

ono-max
Copy link
Collaborator

@ono-max ono-max commented Oct 24, 2021

I try to puts the variable line as follows:

        when 'Debugger.getPossibleBreakpoints'
          s_id = req.dig('params', 'start', 'scriptId')
          line = req.dig('params', 'lineNumber')
          puts line
          send_response req,

However line is nil because the location of lineNumber is inside of start. This PR fixes it.

@ko1 ko1 merged commit 36e227b into ruby:master Oct 25, 2021
@ono-max ono-max deleted the fix-bug branch October 31, 2021 14:07
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

2 participants