byebug

Node.js Debugging flow

ε祈祈猫儿з 提交于 2019-11-29 12:42:28
I'd like to debug node.js like rails. I've tried several ways: Webstorm debug – in this case I need to click "rerun debug" each time after code changed Nodemon with chrome remote debugger – in this case I need to reconnect to debugger each time after code reloaded by nodemon pry.js – here I need to type "eval(pry.it)" – and have no option to make it simpler like "debug" or pry() So what's the best option to debug node apps like byebug for rails? Upgrade: Thx to @AbhinavD I've managed to do it in VSCode: First you need to edit app/.vscode/launch.js javascript { "version": "0.2.0",

Node.js Debugging flow

最后都变了- 提交于 2019-11-28 06:18:36
问题 I'd like to debug node.js like rails. I've tried several ways: Webstorm debug – in this case I need to click "rerun debug" each time after code changed Nodemon with chrome remote debugger – in this case I need to reconnect to debugger each time after code reloaded by nodemon pry.js – here I need to type "eval(pry.it)" – and have no option to make it simpler like "debug" or pry() So what's the best option to debug node apps like byebug for rails? Upgrade: Thx to @AbhinavD I've managed to do it