昨天,今天,明天,每天的每天,你是否都多懂得一点点...

星期一, 四月 29, 2019

NodeJS debugger using Google Chrome

I previously use the default node debugger to debug nodejs app. It's working all right, but at some point I still miss the ability to set break point on the fly.

I tried to setup Google chrome as nodejs debugger. But the problem is that my source page of the Google Chrome devtool is always blank.

The reason is that

To use default nodejs debugger, the following command is used

node inspect bin/www

but for chrome, it should be 

node --inspect bin/www


"inspect" is different from "--inspect"









--
Feng

没有评论:

其它博客地址

此博客的同步博客地址: http://fengnz.wordpress.com
这里进入我的MSN SPACE.