Microsoft's JavaScript debugger for Node.js and browsers, built into VS Code and available as a DAP server
open sourceMITfree
js-debug is the JavaScript debugger built into VS Code and Visual Studio, based on the Debug Adapter Protocol. It debugs Node.js, Chrome, Edge, WebView2, VS Code extensions, Blazor and React Native, follows child processes, workers and iframes automatically, debugs WebAssembly with DWARF symbols, and attaches to any Node.js process started in the terminal (Auto Attach). It captures and shows sourcemap-aware CPU profiles, heap profiles and heap snapshots, sets instrumentation (event listener) breakpoints in web apps, lets you inspect and change a function's return value, and pretty-prints minified sources. Each release ships the VS Code extension and a standalone DAP server for other editors. MIT licensed.
Problems it solves
- debug a Node.js app with breakpoints in my editor
- debug my web app's JavaScript in Chrome from my editor
- find why my Node.js process is slow with a CPU profile
- a JavaScript debug adapter for Neovim or another editor
Features
- debugs Node.js, Chrome, Edge, WebView2, VS Code extensions, Blazor and React Native
- child processes, workers and iframes debugged automatically
- WebAssembly debugging with DWARF symbols
- Auto Attach for Node.js processes started in the terminal
- CPU and heap profiles and heap snapshots
- instrumentation breakpoints and return value interception
- standalone DAP server for other editors
Alternatives
The same job
These do what js-debug does.
- Debugger for Java Microsoft's Java debugger for VS Code
- CodeLLDB A VS Code debugger for native code, powered by LLDB
- Python Debugger Python debugging with debugpy for Visual Studio Code
