Inspecting variables using node's built-in debugger?

后端 未结 2 407
日久生厌
日久生厌 2020-12-13 23:11

I am trying to use the node debugger. I am running node debug server to run my server. Then I have:

...
var Workspace = mongoose.model(\'Workspa         


        
2条回答
  •  天涯浪人
    2020-12-14 00:07

    The answer to the bonus question has changed in 2018.

    Run node inspect foo.js.

    Visit chrome://inspect and in the list of devices you should see an entry that says Target () with an accompanying inspect link.

    It looks like this:

提交回复
热议问题