Description of the problem
Currently, Node.js supports --inspect-brk which always breaks on the first line. Adding a conditional break flag would improve debugging workflows.
Proposed functionality:
node --inspect-brk-if="process.env.DEBUG === 'true'" app.js
This would only break on the first line if the condition is met, making it easier to debug specific scenarios without modifying code.
Description of the problem
Currently, Node.js supports
--inspect-brkwhich always breaks on the first line. Adding a conditional break flag would improve debugging workflows.Proposed functionality:
node --inspect-brk-if="process.env.DEBUG === 'true'" app.js
This would only break on the first line if the condition is met, making it easier to debug specific scenarios without modifying code.