If you are using Windows, this VSCode launch.json can help you:
{ "version": "0.2.0", "configurations": [{ "type": "cppvsdbg", "request": "launch", "name": "Addon Debug", "program": "node", "args": ["C:\\repos\\HighloadCup\\db.js"] }] }
Make sure you create the Node.js addon with the correct architecture and other options.
source share