Students are trying to use breakpoints with debugger to analyse value of
name variable. I’ve provided a simplified Repl that creates the same error at the link below.
Debugger runs the code which works when the regular run button is clicked.
The following error message is displayed in the console.
Steps to reproduce:
- Create new NodeJS repl
- Add the line
name = prompt("Enter your name");
- Run the program to ensure it is working correctly.
- Click to the left of line 1 to set a breakpoint
- Open debugger and click the play button to start the debugger
- Look at console and see the error message
Bug appears at this link:
Chrome 109.0.5414.75 (Official Build) (64-bit); Windows 10; Desktop PC