vscode-js-debug

microsoftMIT活跃维护

兼容 DAP 协议的 JavaScript 调试器,为 VS Code、Visual Studio 等编辑器提供断点、单步和变量查看等调试能力。

A DAP-compatible JavaScript debugger. Used in VS Code, VS, + more

v1.140.0发布于 2026-09-23 16:59 UTC1,987star380fork同步于 2026-11-10 05:51 UTC

怎么上手

README 里没有找到可直接复制的安装命令

README 里没有找到可直接复制的安装命令,请到 README 或官方文档查看安装方式。

硬件要求

README 没有说明硬件要求。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

这个项目的说明还在生成中,先参考下面「最近发版」和 README。

最近发版

5 个版本v1.140.0
  1. v1.140.0最新正式版2026-09-23 · 2026-09-23 16:59 UTC

    Changes:

    Bugs:

    • #2399: Completions fail when the completed name matches a variable in the enumeration template

    Others:

    • #2418: release: prepare v1.140.0
    • #2413: fix: honor explicit pause requests while smart stepping
    • #2411: fix: avoid template local clash for primitive completions
    • #2417: fix: restore debugger attach retries on Node 24.20
    • #2410: chore(deps): bump js-yaml
    • #2409: chore(deps): bump brace-expansion
    • #2405: chore(deps-dev): bump fast-uri from 3.1.5 to 3.1.7
    • #2406: chore(deps-dev): bump browserslist from 4.28.4 to 4.28.8
    • #2397: chore(deps): bump the github-actions group with 2 updates
    • #2393: fix: identifier regexp supports unicode identifiers
    • #2396: Pin GitHub Actions to full-length commit SHAs
    • #2395: Bump data-uri-to-buffer to 6.0.2
    • #2392: chore(deps-dev): bump fast-uri from 3.1.4 to 3.1.5
    • #2390: chore(deps-dev): bump fast-uri from 3.1.2 to 3.1.4
    • #2389: chore(deps): bump shell-quote from 1.8.4 to 1.10.0
    • #2388: chore(deps-dev): bump linkify-it from 5.0.1 to 5.0.2
    • #2382: Apply non-breaking npm audit fix lockfile updates
    • #2377: chore(deps): bump uuid and nyc
    • #2374: chore(deps-dev): bump markdown-it from 14.1.1 to 14.2.0
    • #2376: chore(deps-dev): bump form-data from 4.0.5 to 4.0.6
    • #2375: chore(deps): bump ws from 8.20.1 to 8.21.0
    • #2373: chore(deps-dev): bump esbuild and tsx
    • #2372: Run npm audit fix without --force and without overrides
    • #2371: chore(deps): bump shell-quote from 1.8.1 to 1.8.4
    • #2369: fix: use DI for vscode API in nodeLauncher instead of direct import
    • #2367: chore(deps-dev): bump tmp from 0.2.4 to 0.2.7
    • #2363: chore(deps): bump qs and express
    • #2353: Update got to v15
    • #2362: chore: npm update brace-expansion
    • #2360: Update ws to 8.20.1
    • #2358: chore: migrate to ESLint 9
    • #2356: Migrate Azure DevOps CI to GitHub Actions and remove ADO CI pipeline
    • #2355: Migrate package TypeScript settings to ESM
    • #2354: chore: bump picomatch to 4.0.4
    • #2352: chore(deps-dev): bump fast-uri from 3.1.0 to 3.1.2
    • #2349: Provide an opt-out for debug entrypoint resolution (compiled file remapping)

    This list of changes was auto generated.

  2. v1.117.02026-04-17 · 2026-04-17 22:49 UTC
    查看更新说明

    Changes:

    • #2348: chore: prep v1.117.0
    • #2347: Integrated browser fixes, configuration provider
    • #2343: Remove unused dependency
    • #2339: chore: replace vsce with @vscode/vsce and add serialize-javascript override
    • #2337: npm audit fix: address non-breaking security vulnerabilities
    • #2286: chore(deps-dev): bump playwright from 1.52.0 to 1.55.1
    • #2336: chore(deps): bump brace-expansion
    • #2335: Revert "chore: update tas-client for proper disposal (#2332)"
    • #2332: chore: update tas-client for proper disposal
    • #2333: chore(deps-dev): bump flatted from 3.2.4 to 3.4.2

    This list of changes was auto generated.

  3. v1.112.02026-03-13 · 2026-03-13 22:17 UTC
    查看更新说明

    Changes:

    • #2331: Fix publishExtension parameter in nightly pipeline
    • #2330: prepare: v1.112.0
    • #2329: Support debugging integrated browser
    • #2328: Filter empty string args to prevent node from hanging
    • #2327: Fix debug session not terminating when browser closed from elevated VS

    This list of changes was auto generated.

  4. v1.110.02026-02-26 · 2026-02-26 22:22 UTC
    查看更新说明

    Changes:

    • #2323: 1.110.0
    • #2322: chore(deps): bump minimatch, @typescript-eslint/eslint-plugin and @typescript-eslint/parser
    • #2311: Implement Symbol.for("debug.properties") for custom property replacement in debugger
    • #2316: Add "Emulate a focused page" feature
    • #2312: fix: label module scopes as expensive
    • #2314: chore: do not recommend outdated extension for neovim
    • #2309: chore(deps): bump lodash from 4.17.21 to 4.17.23
    • #2308: fix: don't duplicate --allow-all for deno debug configuration
    • #2305: chore(deps): bump qs and express
    • #2297: Dereferences of undefined at various places
    • #2295: chore(deps-dev): bump glob from 10.3.10 to 11.1.0
    • #2294: chore(deps): bump js-yaml

    This list of changes was auto generated.

  5. v1.105.02025-10-01 · 2025-10-01 19:11 UTC
    查看更新说明

    Changes:

    Bugs:

    • #2265: Very slow startup of extensionHost tests due to sourcemap parsing

    Others:

    • #2282: 1.105.0
    • #2279: chore(deps-dev): bump tar-fs from 2.1.3 to 2.1.4
    • #2276: chore: update trace-mapping for perf fix
    • #2264: add pid tracker for browser
    • #2274: chore: fix dwarf test flake
    • #2273: Make tests green again!

    This list of changes was auto generated.

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    This is a DAP-based JavaScript debugger. It debugs Node.js, Chrome, Edge, WebView2, VS Code extensions, Blazor, React Native, and more. It is the default JavaScript debugger in Visual Studio Code and Visual Studio, and the standalone debug server can also be used in other tools such as Neovim.

    Usage

    If you're using Visual Studio or Visual Studio Code, js-debug is already installed. Otherwise, please consult your editor's documentation for possible installation instructions. Builds of the VS Code extension and standalone DAP server are available on the releases page.

    See OPTIONS.md for a list of options you can use in your launch configurations.

    Nightly Extension

    The shipped version of VS Code includes the js-debug version at the time of its release, however you may want to install our nightly build to get the latest fixes and features. The nightly build runs at 5PM PST on each day that there are changes (see pipeline). To get the build:

    1. Open the extensions view (ctrl+shift+x) and search for @builtin @id:ms-vscode.js-debug
    2. Right click on the JavaScript Debugger extension and Disable it.
    3. Search for @id:ms-vscode.js-debug-nightly in the extensions view.
    4. Install that extension.

    Notable Features

    In js-debug we aim to provide rich debugging for modern applications, with no or minimal configuration required. Here are a few distinguishing features of js-debug beyond basic debugging capabilities. Please refer to the VS Code documentation for a complete overview of capabilities.

    Debug child processes, web workers, service workers, and worker threads

    In Node.js, child processes and worker threads will automatically be debugged. In browsers, service workers, webworkers, and iframes will be debugged as well. While debugging workers, you can also step through postMessage() calls.

    Debug WebAssembly with DWARF symbols

    The debugger automatically reads DWARF symbols from WebAssembly binaries, and debugs them. The usual debugging features are available, including limited evaluation support via lldb-eval.

    Debug Node.js processes in the terminal

    You can debug any Node.js process you run in the terminal with Auto Attach. If auto attach isn't on, you can run the command Debug: Toggle Auto Attach to turn it on. Next time you run a command like npm start, we'll debug it.

    Once enabled, you can toggle Auto Attach by clicking the Auto Attach: On/Off button in the status bar on the bottom of your screen. You can also create a one-off terminal for debugging via the Debug: Create JavaScript Debug Terminal command.

    Profiling Support

    You can capture and view performance profiles natively in VS Code, by clicking on the ⚪ button in the Call Stack view, or through the Debug: Take Performance Profile command. The profile information collected through VS Code is sourcemap-aware.

    We support taking and visualizating CPU profiles, heap profiles, and heap snapshots.

    Instrumentation breakpoints

    When debugging web apps, you can configure instrumentation breakpoints from VS Code in the "Event Listener Breakpoints" view.

    Return value interception

    On a function's return statement, you can use, inspect, and modify the $returnValue.

    Note that you can use and modify properties on the $returnValue, but not assign it to--it is effectively a const variable.

    Pretty-print minified sources

    The debugger can pretty print files, especially useful when dealing with minified sources. You can trigger pretty printing by clicking on the braces {} icon in editor actions, or via the Debug: Pretty print for debugging command.

    Experimental Network View

    The debugger allows viewing network traffic of browser targets and Node.js >22.6.0. This requires enabling the debug.javascript.enableNetworkView setting.

    Advanced Rename Support

    When using a tool that emits renames in its sourcemap, the debugger maps renamed variables in all displayed views, and also rewrites evaluation requests to use the renamed identifiers, allowing near-source-level debugging of minified code.

    Conditional Exception Breakpoints

    As in most debuggers, you can pause on caught exceptions, but you can also filter the exceptions you want to pause on by checking against the error object. In VS Code, you can do this by clicking the pencil icon in the Breakpoints view.

    Excluded Callers

    If you have a breakpoint you want to pause on, but not when called from certain frames, you can right click on call frames in the stack trace view to "exclude caller" which prevents pausing on that breakpoint when the requested caller is in the stack trace.

    Step-in Targets

    When paused on a location with multiple calls or expressions, the debugger supports the Debug: Step Into Target action that allows you to request a specific expression you wish to step into.