Debug node-api extention
This is a quick list of how to start denode for native debug in Visual Studio.
Select denode as startup project
In configuration Properties -> Debugging set Command to: C:\Program Files (x86)\nodejs\node.exe
In configuration Properties -> Debugging set Command argument to: the file you want to start like E:\Projects\denode\index.js
Make sure the javascript file loads your compiled version of denode for the directory you compile it to like
const denode = require('./build/Debug/denode.node');
for loading the debug version when the script is in the root folder or the project.
You can set a breakpoint in index.cpp in the Init code. for Napi to check if it works. If your debugger stops heare you can set breakpoints in your c++ code the debug the api.