Skip to content

How can I test a simple Javascript code with iotjs-vscode-extension ? #10

Open
@haesik

Description

@haesik

I followed the instruction on the Readme file.
But I have failed to start debugging of a sample javascript file.
Could you explain more detailed instructions?

my test)
I tested using following instructions

$ git clone https://github.com/Samsung/iotjs-vscode-extension.git
$ cd iotjs-vscode-extension ~/.vscode -r
$ cd path/to/the/iotjs
$ ./tools/build.py --buildtype=debug --jerry-debugger
$ ./build/x86_64-linux/debug/bin/iotjs --start-debug-server ./test/run_pass/test_console.js

and I made a launch.json file in iotjs/.vscode/ with the following contents
{
"version": "0.2.0",
"configurations": [
{
"name": "IoT.js: Attach",
"type": "iotjs",
"request": "attach",
"address": "localhost",
"port": 5001,
"localRoot": "${workspaceRoot}/test/run_pass/test_console.js",
"stopOnEntry": false,
"debugLog": 0
},
]
}

I pushed F5 button on vscode ..
and I received a fail message written in Korean..
Here is a brief translation => "The debug adapter process terminated unexpectedly"

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