Debugging 更改Meteor节点检查器web端口
调试Meteor时,我需要更改节点检查器使用的web端口,但它似乎总是在8080上运行,我需要在8080上运行Meteor web应用程序 在运行Meteor之前,我已尝试设置NODE_OPTIONS环境变量:Debugging 更改Meteor节点检查器web端口,debugging,meteor,port,node-inspector,Debugging,Meteor,Port,Node Inspector,调试Meteor时,我需要更改节点检查器使用的web端口,但它似乎总是在8080上运行,我需要在8080上运行Meteor web应用程序 在运行Meteor之前,我已尝试设置NODE_OPTIONS环境变量: $ export NODE_OPTIONS=--debug=47977 $ meteor debug --port=8080 [[[[[ ~/.../src ]]]]] => Started proxy. => St
$ export NODE_OPTIONS=--debug=47977
$ meteor debug --port=8080
[[[[[ ~/.../src ]]]]]
=> Started proxy.
=> Started MongoDB.
Starting your app -
Your application is now paused and ready for debugging!
To debug the server process using a graphical debugging interface,
visit this URL in your web browser:
http://localhost:8080/debug?port=5858
Paused at /.../src/.meteor/local/build/main.js:7
Cannot start the server at 0.0.0.0:8080. Error: listen EADDRINUSE.
There is another process already listening at this address.
Run `node-inspector --web-port={port}` to use a different port.
我曾尝试在不同的web端口上分别运行node inspector,然后启动meteor,但meteor似乎总是尝试在8080上启动node inspector:
$ node-inspector --web-port=47977 &
[1] 74439
$ Node Inspector v0.5.0
info - socket.io started
Visit http://127.0.0.1:47977/debug?port=5858 to start debugging.
$ meteor debug --port=8080
[[[[[ ~/.../src ]]]]]
=> Started proxy.
=> Started MongoDB.
Starting your app -
Your application is now paused and ready for debugging!
To debug the server process using a graphical debugging interface,
visit this URL in your web browser:
http://localhost:8080/debug?port=5858
Paused at /.../src/.meteor/local/build/main.js:7
Cannot start the server at 0.0.0.0:8080. Error: listen EADDRINUSE.
There is another process already listening at this address.
Run `node-inspector --web-port={port}` to use a different port.
注意,这里有3个端口:
在Mac上运行Meteor 1.2.1时,我遇到了同样的问题,我通过以下方法解决了这个问题: 在终端运行中
节点检查器--web端口=47977
在一个新的终端上运行meteor调试
转到
http://127.0.0.1:47977/ws=127.0.0.1:47977&port=5858
开始调试。我遇到了同样的问题,我已通过以下方法解决:
在终端运行中节点检查器--web端口=47977
在一个新的终端上运行meteor调试
转到http://127.0.0.1:47977/ws=127.0.0.1:47977&port=5858
开始调试