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".
Have Chrome running and visit the URL chrome://inspect, and click "Open dedicated DevTools for Node."
$ cd jerryscript-debugger-ts
$ yarn install
$ ./jerry-debugger.sh
Add some breakpoints.
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.
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.
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
$ cd jerryscript
$ python tools/build.py --jerry-debugger=on --jerry-libc=off
$ ./build/bin/jerry --start-debug-server --log-level 2 test/debugger/do_finish.js
chrome://inspect
, and click "Open dedicated DevTools for Node."$ cd jerryscript-debugger-ts
$ yarn install
$ ./jerry-debugger.sh
Actual Result
After step7: Error message "incorrect target debugger version detected: 3 expected 2 is print after connection setup.
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.
Expected Result
No errors occur.
Test Builds
Additional Information