Problem description:
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.
Expected behavior:
Debugger runs the code which works when the regular run button is clicked.
Actual behavior:
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:
https://replit.com/@IanAtReplit/DebuggerIssue
Browser/OS/Device:
Chrome 109.0.5414.75 (Official Build) (64-bit); Windows 10; Desktop PC