在开发nodejs时,不知道怎么调试,于是在网上着了些资料,顺便记录下找到需要执行的文件,例如node --inspect-brk index.js打开google浏览器,在地址栏输入chrome://inspect/#devices ,即可。