Coder Social home page Coder Social logo

newbie on stage about vscode-duktape-debug HOT 2 CLOSED

harold-b avatar harold-b commented on July 30, 2024
newbie on stage

from vscode-duktape-debug.

Comments (2)

harold-b avatar harold-b commented on July 30, 2024

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.

from vscode-duktape-debug.

harold-b avatar harold-b commented on July 30, 2024

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

from vscode-duktape-debug.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.