node inspector的安装以及使用【已经淘汰了】
https://github.com/node-inspector/node-inspector
前提
1.npm install -g node-pre-gyp
https://github.com/mapbox/node-pre-gyp/wiki/FAQ
On Windows for Node C++ modules that do not link external libraries there are no major gotchas. The binaries you build will work well on any Windows system. This is because the default linking for Node is /MT
(aka RuntimeLibrary:0) and node-pre-gyp modules inherit this setting by default. So, the C++ runtime will be statically linked into the addon binary and therefore you don't need to worry about your users installing it separately.
However, for Node C++ modules on Windows that depend on external shared libraries, you'll need to understand whether those libraries were linked with /MD
or /MT
. If the external DLL was linked with /MD
then you'll likely need to also link your Node C++ addon using /MD
and you'll need to ensure that your users have the right C++ runtime installed for your addon binary to work. For example, if you compiled your binary with Visual Studio 2013 then your users would need This "C++ Redistributable".
2.npm install -g node-gyp
3.https://github.com/nodejs/node-gyp 官方推荐如下命令
npm install --global --production windows-build-tools --vs2017
https://github.com/felixrieseberg/windows-build-tools
4. npm config set python /path/to/executable/python2.7
npm config set python 'C:\Users\clu\.windows-build-tools\python27'
安装
npm install -g node-inspector
使用
貌似不需要使用这玩意了:
Node Inspector is a debugger interface for Node.js applications that uses the Blink Developer Tools (formerly WebKit Web Inspector).
Since version 6.3, Node.js provides a built-in DevTools-based debugger which mostly deprecates Node Inspector, see e.g. this blog post to get started.
The built-in debugger is developed directly by the V8/Chromium team and provides certain advanced features (e.g. long/async stack traces) that are too difficult to implement in Node Inspector.
作者:Chuck Lu GitHub |
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步