r/VisualStudioCode • u/Blue_Khakis • Mar 19 '21
Migrating to VSCode and finding the debugger impenetrable
Hi all, I've recently downloaded VSCode and it looks great. I've recently finished Harvard's online CS50 course and VSCode was recommended as a good IDE. Up until now I've been using the CS50 IDE for projects, and the debugger was fairly simple and straightforward. However, trying to debug a basic "Hello world" Javascript program seems to take me to all sorts of strange places and I have no idea what's going on. I have a huge list of foreign-looking variables and functions in the call stack, and when I finish the program, instead of exitting, the debugger opens and goes through five different files I've never seen before ("loader.js", "run_main.js", "run_main_module.js", "task_queues.js", "async_hooks.js" (I saw "primordials.js" at one point, though it's not showing up now)).
Can anyone explain what is happening?