Inspecting variables using node's built-in debugger?

后端 未结 2 411
日久生厌
日久生厌 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:15

    Use repl command ( see third example in docs )

    break in hotplate/node_modules/bd/lib/bd.js:133
    132 
    133   debugger;
    134 
    135   // Delete the ID and the version since there's no point,
    debug> repl
    Press Ctrl + C to leave debug repl
    > Workspace
    

    Update: bonus question - https://github.com/c4milo/node-webkit-agent

提交回复
热议问题