Comments (2)
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.
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)
- Another breakpoint not hit problem HOT 1
- evalcall >255 params
- How to debug debug-protocol issues? HOT 7
- Debugger not working with duktape 2.1.1 HOT 2
- Debugger symbol output is messed up HOT 12
- VSCode is no longer supporting specifiying a commandId in the "initialConfigurations" contribution HOT 2
- Virtual properties are not getting listed
- Option for hiding hidden symbols
- New release required HOT 3
- Source unknown in callstack HOT 2
- Errors when running vscode with duktape HOT 3
- need to put debugger; in javascript to catch the breakpoints HOT 2
- [Q] Trying to increase read buffer size HOT 3
- Looking for maintainers? HOT 2
- Configuring the debugger with multiple source roots HOT 13
- Add runtimePrefix option HOT 1
- Breakpoints and source files HOT 15
- TypeError: e.resume is not a function HOT 2
- Exception on print() only in --debugger mode
- Prefixing "file:///" to Windows absolute paths causes "Unknown source file" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-duktape-debug.