Skip to content

Target name in chrome://inspect is not the name of test object #15

@qiaojingx

Description

@qiaojingx

Description

When using jerryscript-debugger.sh to debug with /bin/jerry executable + source.js inside JerryScript.
Target name in chrome://inspect/#devices displays as untitled.js, while it shows the name of test object when using node --inspect test.js

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
  5. Check target name.

Actual Result

After Step5: Target name in chrome://inspect/#devices displays as untitled.js,
selection_007

Expected Result

After Step5: Target name displays as the name of test object just as node --inspect test.js does
selection_004

Test Builds

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

Additional Information

Module name is also incorrect if use jerryscript-debugger-ts to debug with ./outdir/linux/release/jslinux executable + source.js inside ZJS project.
Take test-buffer.js as an example, Assert.js module is opened with name untitled1
selection_008

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