Skip to content

Console evaluation in Chrome devtools debugging session #894

Description

@nilbus

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!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions