我尝试在Visual Studio代码中为使用GYP编译的C++ Node-Addon设置调试.如果可能的话,我想逐步完成源代码.我使用typescript作为我的服务器语言,并包含由gyp编译的".node"文件.这工作正常,但我如何设置它,所以我不仅可以通过打字稿代码,还可以通过C++代码?
.cc文件的VSCode断点:
我知道我可以node-gyp rebuild --debug使用gyp 编译调试版本,但我没有计划如何在vscode中使用它.
node-gyp rebuild --debug
c++ node.js visual-studio-code node.js-addon
c++ ×1
node.js ×1
node.js-addon ×1
visual-studio-code ×1