Skip to content

vscode debugging unbound breakpoints #7310

Closed Answered by Mexator
JustinBoileau asked this question in Help / Questions
Discussion options

You must be logged in to vote

In package.json there is scripts block:

"scripts": {
    "start": "node server",
    "dev": "NODE_OPTIONS=--openssl-legacy-provider node dev",

Find "dev" script and add --inspect-brk=9222 option to it:

"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 yarn run dev open the "Run and Debug" tab run "Attach to port".

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JustinBoileau
Comment options

Answer selected by JustinBoileau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants