Skip to content

Error prints in terminal when debugging with /bin/jerry built in JerryScript #12

@qiaojingx

Description

@qiaojingx

Description

When using jerryscript-debugger.sh to debug with /bin/jerry executable + source.js inside JerryScript. Breakpoint can be added and removed. Sometimes, Resume/Step into/Step over/Step out/Step wil cause "unhandled protocol message type: xx".

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. Click Resume/Step into/Step over/Step out/Step

Actual Result

After step7: Error message "incorrect target debugger version detected: 3 expected 2 is print after connection setup.
selection_006

After step9: Error message "unhandled protocol message type: xx" is print in terminal sometimes while Clicking Resume/Step into/Step over/Step out/Step to debug.
selection_007

Expected Result

No errors occur.

Test Builds

Project Commit Id Target Device Test Date Result
jerryscript d672d1e Linux Apr. 27, 2018 Fail
jerryscript-debugger-ts ed66d7d Linux Apr. 27, 2018 Fail

Additional Information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions