如何调试Node.js
2024-08-24 05:16:14
Debugging Node.js with Chrome DevTools
https://nodejs.org/en/docs/guides/debugging-getting-started/
1.
PS C:\Users\clu\Documents\NodeApp\Test> node --inspect .\app.js
Debugger listening on ws://127.0.0.1:9229/34c03922-857b-4e6d-82cf-30dbf27a76ff
For help, see: https://nodejs.org/en/docs/inspector
Server running at http://127.0.0.1:3000/
2.在Chrome浏览器中打开about:inspect
3.打开 Click the Open dedicated DevTools for Node link.
在vs2017中调试
https://github.com/Microsoft/nodejstools/wiki/Debugging
创建Node.js项目,https://github.com/Microsoft/nodejstools/wiki/Projects
debug设置,https://github.com/Microsoft/nodejstools/wiki/Debugging#debugging-options
Developer Tools in Chrome(Chrome Extension)
https://chrome.google.com/webstore/detail/nodejs-v8-inspector-manag/gnhhdgbaldcilmgcpfddgdbkhjohddkj
最新文章
- setenv.bat
- oracle触发器加条件判断
- Java中的Double类型计算
- spark yarn-cluster 和 yarn-client提交的配置
- [spring] java.lang.reflect.MalformedParameterizedTypeException
- Centos6.5网络无法连接问题
- php安装中的错误
- 欧几里得求最大公约数--JAVA递归实现
- ZOJ3626(树形dp)
- 二分图匹配 洛谷 [P3386]
- JavaScript设计模式(7)-设配器模式
- Windows使用MongoDB,以及索引创建
- Sql server not in优化
- python多进程并发和多线程并发和协程
- (3)打造简单OS-MBR引导区转移加载简单程序(突破512限制)
- React-native-camera error with Expo: undefined is not an object (evaluating 'CameraManager.Aspect')
- Linux(CentOS7.0)下 C访问MySQL (转)
- 获取请求真实ip
- 如何fork比特币的源码并同步更新到本地
- Android敏捷开发、CI(持续集成)探究