When debugging node.js via devtools and --inspect
, the devtools "Call Stack" accordian panel expands automatically, forcing the "Scope" panel out of the viewable area.
- macOS 10.13
- node v6.11.4, node v6.11.3
- Chrome 62.0.3202.62, Chrome 61.0.3163.100
- Launch a simple test program with
node --inspect --debug-brk
console.log("Collapse the call stack panel at program start");
setTimeout(() => {
console.log("Set a breakpoint on this line");
}, 1000);
- In devtools, set a breakpoint for code not yet hit
- collapse the "Call Stack" panel
- Click Play
- When the breakpoint is hit, the "Call Stack" panel expands automatically
Using the console with code such as console.log(42)
does not print anything to the console.
- macOS 10.13
- node v6.11.4
- chrome 62.0.3202.62
- debug any node program
- use the devtools console to try to log anything such as
console.log(42)
- expected: console prints the value
- actually: console clears without printing