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

Breakpoints are invisible after reopen ChromeDevTools #13

Open
qiaojingx opened this issue May 2, 2018 · 0 comments
Open

Breakpoints are invisible after reopen ChromeDevTools #13

qiaojingx opened this issue May 2, 2018 · 0 comments

Comments

@qiaojingx
Copy link

qiaojingx commented May 2, 2018

Description

When using jerryscript-debugger.sh to debug with /bin/jerry executable + source.js inside JerryScript. Breakpoints will be invisible after reopening ChromeDevTools. If try to add the breakpoints again, it will prompt "breakpoint already enabled" in terminal, but still invisible in ChromeDevTools.

Test Code

JerryScript Debugger & Chrome DevTools Proxy;
jerryscript/test/debugger/do_finish.js

Steps to Reproduction

  1. $ cd jerryscript
  2. $ python tools/build.py --jerry-debugger=on --jerry-libc=off
  3. $ ./build/bin/jerry --start-debug-server --log-level 2 test/debugger/do_finish.js
  4. Have Chrome running and visit the URL chrome://inspect, and click "Open dedicated DevTools for Node."
  5. $ cd jerryscript-debugger-ts
  6. $ yarn install
  7. $ ./jerry-debugger.sh
  8. Add some breakpoints.
  9. Reopen ChromeDevTools.

Actual Result

After Step9: No breakpoints display. If try to add breakpoints again, it will prompt "breakpoints already enabled" in terminal, but still invisible in ChromeDevTools.
Before reopen:
selection_001

After reopen:
selection_002
Error in terminal when add breakpoint:

Server < {"id":61,"method":"Debugger.setBreakpointByUrl","params":{"lineNumber":18,"url":"tests/debugger/do_finish.js","columnNumber":0,"condition":""}}
Server > {"id":61,"error":{"code":-32603,"message":"InternalError: Internal Error when calling 'Debugger.setBreakpointByUrl'","data":"breakpoint already enabled"}}

Expected Result

Breakpoints are visible after reopen ChromeDevTools. Breakpoints can removed and re-added.

Test Builds

Project Commit Id Target Device Test Date Result
jerryscript d672d1e Linux May. 2, 2018 Fail
jerryscript-debugger-ts ed66d7d Linux May. 2, 2018 Fail
Chrome version 65 Linux May. 2, 2018 Fail

Additional Information

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

No branches or pull requests

1 participant