Vietnam

    Nodejs.vn

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Groups
    • Search

    Debug nodejs bằng chrome:

    Node.JS
    0
    1
    1225
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • nguyenquynhan
      nguyenquynhan last edited by

      Hiện nay có nhiều tool debug nhưng mình thấy thằng này debug là ok nhất, nó y như những gì mình debug javascript trên browser

      • step 1: cài đặt node-inspector
        • npm install -g node-inspector
      • step 2: vào thư mục project của bạn và chạy lệnh:
        • node-debug app.js (app.js là file start app của bạn)
      • step 3: node-inspector sẽ tự động mở chrome lên và bạn debug bằng develop tool của chrome
        alt text
      • bạn có thể tìm hiểu sâu hơn tại https://github.com/node-inspector/node-inspector

      Chúc các bạn thành công!

      NHAN NGUYEN

      1 Reply Last reply Reply Quote 2
      • First post
        Last post