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

Console evaluation in Chrome devtools debugging session #894

Closed
nilbus opened this issue Feb 10, 2023 · 2 comments
Closed

Console evaluation in Chrome devtools debugging session #894

nilbus opened this issue Feb 10, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@nilbus
Copy link

nilbus commented Feb 10, 2023

When debugging via open chrome, I can step through code and set breakpoints fine, but when I enter even 1 character into Chrome's console to test evaluating something, the debugger crashes and its attached ruby process with it.

 (eval):1:in `block in process_protocol_request': No such file or directory @ rb_sysopen - -b (Errno::ENOENT)
         from /usr/local/bundle/gems/debug-1.7.1/lib/debug/server_cdp.rb:759:in `eval'
         from /usr/local/bundle/gems/debug-1.7.1/lib/debug/server_cdp.rb:759:in `block in process_protocol_request'
         from /usr/local/bundle/gems/debug-1.7.1/lib/debug/server_cdp.rb:758:in `map'
         from /usr/local/bundle/gems/debug-1.7.1/lib/debug/server_cdp.rb:758:in `process_protocol_request'
         from /usr/local/bundle/gems/debug-1.7.1/lib/debug/session.rb:424:in `wait_command'
         from /usr/local/bundle/gems/debug-1.7.1/lib/debug/session.rb:377:in `block in wait_command_loop'
         from /usr/local/bundle/gems/debug-1.7.1/lib/debug/session.rb:376:in `loop'
         from /usr/local/bundle/gems/debug-1.7.1/lib/debug/session.rb:376:in `wait_command_loop'
         from /usr/local/bundle/gems/debug-1.7.1/lib/debug/session.rb:342:in `process_event'
         from /usr/local/bundle/gems/debug-1.7.1/lib/debug/session.rb:235:in `session_server_main'
         from /usr/local/bundle/gems/debug-1.7.1/lib/debug/session.rb:197:in `block in activate'

The error is raised at

gv = eval(name.to_s)

I haven't determined yet what name.to_s evaluates to.

Are you able to reproduce this? If not, I can attempt to set up an environment in which it's reproducible.

Thanks!

@nilbus
Copy link
Author

nilbus commented Feb 10, 2023

🤔 I found that I'm having this issue in one environment but not another. I'll see whether I can find time to trace down what's wrong in the environment where it's broken.

@ko1 ko1 added the bug Something isn't working label Mar 7, 2023
@ono-max ono-max self-assigned this Mar 7, 2023
@ono-max
Copy link
Member

ono-max commented Mar 11, 2023

I think that #893 fixes this issue.

If you have any problem, please reopen or mention me. Thank you.

@ono-max ono-max closed this as completed Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

3 participants