8000 Node调试 · Issue #19 · iuap-design/blog · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Node调试 #19
Open
Open
@LiuYueKai

Description

@LiuYueKai

本次主要介绍基于chrome浏览器对node进行调试。

安装插件

基于chrome浏览器调试需要安装node-inspector

npm install -g node-inspector

启动调试监听

 node-inspector

调试监听默认占用8080端口,修改端口可以通过

node-inspector --web-port 3456

启动node程序

 node --debug app.js

上面的方式不会在程序第一行停留,要在程序第一行停留可通过以下方式启动

 node --debug-brk=5858 gulp.js

chrome调试

在chrome浏览器中打开以下链接:

 http://127.0.0.1:8080/?port=5858

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0