Skip to content

使用Chrome调试Node.js #30

@wujunchuan

Description

@wujunchuan

使用Chrome调试Node.js

使用NIM来调试

NIM 是Node.js的调试管理工具,是目前提供了Chrome的插件支持

在终端执行node --inspect index.js你会看到Node inspect开了个端口 9229

使用 node inspect index.js 调用的是Node内置的调试器

NIM中输入对应的地址与端口,就可以跳到对应调试界面

使用chrome://inspect来调试

在Chrome浏览器中输入chrome://inspect
点击Open dedicated DevTools for Node

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions