How to Set Up Real Breakpoint Debugging for JS/TS in Neovim
A developer guide explains how to configure actual breakpoint-based debugging in Neovim for JavaScript and TypeScript projects, replacing the common console.log approach. The setup relies on Microsoft's vscode-js-debug adapter, downloaded from GitHub and run as a local DAP server via Node. A single pwa-node adapter handles plain Node, TypeScript, and NestJS, while React Native requires an additional nvim-dap-react-native plugin to connect directly to the Hermes engine. Four debug configurations cover launching plain files, running TypeScript via tsx, attaching to a NestJS process on port 9229, and attaching to a React Native app. Sourcemap support in js-debug allows developers to debug .ts files directly without a manual build step.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in