- Download latest VS Code and Node, and navigate to an empty folder using VS Code.
- Create a new file server.js
- Type the following code:
console.time("task"); console.log("hello world"); console.timeEnd("task");
- Open command prompt within VS Code
- Run node server.js
- Prints the following output, which is expected:
> node server.js hello world task: 5.763ms
- Click the Run/Debug icon in the Activity Bar on the side of VS Code.
- Click Run and Debug button
- In the VS Code terminal, go to the Debug Console tab.
- The following output is printed, which is not expected:
hello world server.js:3 task: 13.216796875ms server.js:5 task: 13.253ms constructor.js:531
What is constuctor.js, and why is it printing the console.timeEnd(label) output once again?
Does this issue occur when all extensions are disabled?: Yes
Similar issues reported before, which were closed without any satisfactory explanation.
What do you think?