怎么调试NodeJS
展开全部
启动要调试的项目: node --debug 文件名
启动node-inspector:node-inspector --web-port=11111 默认监听端口为 8080
用chrome浏览器打开 http //127.0.0.1 11111/debug?port=5858 选择文件打断点之类
一些选项
Option Default Description
--help | | Print information about options
--web-port | 8080 | Port to host the inspector
--web-host | 127.0.0.1 | Host to listen on
--debug-port | 5858 | Port to connect to the debugging app
--save-live-edit | false | Save live edit changes to disk (update the edited files)
--hidden | [] | Array of files to hide from the UI
| | Breakpoints in these files will be ignored
启动node-inspector:node-inspector --web-port=11111 默认监听端口为 8080
用chrome浏览器打开 http //127.0.0.1 11111/debug?port=5858 选择文件打断点之类
一些选项
Option Default Description
--help | | Print information about options
--web-port | 8080 | Port to host the inspector
--web-host | 127.0.0.1 | Host to listen on
--debug-port | 5858 | Port to connect to the debugging app
--save-live-edit | false | Save live edit changes to disk (update the edited files)
--hidden | [] | Array of files to hide from the UI
| | Breakpoints in these files will be ignored
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询