Skip to content
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

newbie on stage #20

Closed
denisdemaisbr opened this issue Feb 12, 2017 · 2 comments
Closed

newbie on stage #20

denisdemaisbr opened this issue Feb 12, 2017 · 2 comments
Labels

Comments

@denisdemaisbr
Copy link

Hi, this extension of vscode connect directly on app (duktape engine with debugger support) OR via nodejs/proxy ?

Thanks for clarify any.

PS: i.e., what is the scene to uses it succefully.

@harold-b
Copy link
Owner

It connects directly to the target duktape app via TCP. Any app with debugger support enabled running duktape version 1.5.0/1.6.0 should work. Support for v2.0.0 is on the works but I'd like to do some refactoring before releasing that version. (If you do need support for version 2.0.0, you can build off the 2.0.0 working branch and install the extension manually in the meantime).

See Debug Host (Server) Instructions for more info.

On VSCode, you need to create a launch.json file under that .vscode directory (You can do this by clicking on the gear icon on the debug panel), and add a launch configuration to the file.

Example:

"version": "0.2.1",
"configurations": [
        {
            "name"        : "Duk Attach",
            "type"        : "duk",
            "request"     : "attach",
            "stopOnEntry" : false,

            "address"     : "localhost", // ip bound to the duktape runtime's listener socket
            "port"        : 9091, // Port specified on your duktape runtime's listener socket

            "localRoot"   : "${workspaceRoot}",

             // If using a transpiled language with source maps:
            "sourceMaps"  : false,
            "outDir"      : "${workspaceRoot}/bin"
        }
]

Let me know if this clarifies things.

@harold-b
Copy link
Owner

If there's no longer any other questions, I'll close this issue.
Please re-open it if you need anything else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants