vscode debugging unbound breakpoints #7310
-
I have installed a development environment on a windows 11 PC , using vscode & docker desktop, as per the instructions on the web site. When I attempt to set any breakpoints in vscode e.g server/modules/rendering/markdown-core/renderer.js, they appear as 'unbound breakpoints'. I am new to js development and unsure how to resolve the issue. Any help is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In package.json there is scripts block: "scripts": {
"start": "node server",
"dev": "NODE_OPTIONS=--openssl-legacy-provider node dev", Find "dev" script and add "scripts": {
"start": "node server",
"dev": "NODE_OPTIONS=--openssl-legacy-provider node --inspect-brk=9222 dev", Run your app as per "Getting started" instructions. After executing |
Beta Was this translation helpful? Give feedback.
In package.json there is scripts block:
Find "dev" script and add
--inspect-brk=9222
option to it:Run your app as per "Getting started" instructions.
After executing
yarn run dev
open the "Run and Debug" tab run "Attach to port".