-
Notifications
You must be signed in to change notification settings - Fork 9
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
How can I test a simple Javascript code with iotjs-vscode-extension ? #10
Comments
@haesik First of all, your In the other hand I think if you want to use the debugger directly from the iotjs directory insted of a separated empty project folder, the debugger waiting mode would be much better because of you already have that file on your computer what you want to debug. I suggest you that to start the iotjs with this command: |
I have tried localRoot with ${workspaceRoot}, but the result is same. $ git clone https://github.com/Samsung/iotjs-vscode-extension.git and I made a launch.json file in iotjs/.vscode/ with the following contents I pushed F5 button on vscode .. |
@haesik I see, sorry, I missed that you wanted to copy the extension into the vscode to avoid the developer debug run. In this case the copy path that you using is incorrect, the extensions are listed in Use this: After this, the sequence that you using should work properly. |
@haesik cd ~/.vscode/extensions/iotjs-vscode-extension
npm install
npm run compile @knightburton Could you update the |
@knightburton @hs0225 Thank you very much for the guides.. |
@hs0225 Sure, I forgot that the |
I've opened a PR about the README update (#13) and since this issue is solved I close this. |
Today, I have tested vscode-extension with latest iotjs and I got an error message.
$ git clone https://github.com/Samsung/iotjs-vscode-extension.git and I made a launch.json file in iotjs/.vscode/ with the following contents and I connect to a running engine and I got the following message, TCP Error: Connection reset by peer Could you check it?
TCP Error: Resource temporarily unavailable Could you check this also? |
|
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"
The text was updated successfully, but these errors were encountered: