Hi,
I’ve been trying to setup the DevTools debugger to see what’s wrong with my current code in the Profile Lookup JS challenge but i’m struggling to make it work correctly. I’ve followed the guide on debugging JavaScript with browser devtools, but for some reason when I open the source map file (e.g. profile.js file based off //# sourceURL=profile.js that I added on top of the code as instructed) and try to run the debugger, a bunch of other files keep opening on top of my profile.js file, such as index or editor.main.js, and my source tab automatically switches to them. I tried adding a screenshot, but unfortunately i can’t do that yet as i’m new to the forum.
Also, as soon as I open the profile.js, the debugging menu shows me that the debugger is already running and only gives me the option to pause it, with everything else such as step over next function or step into next function call being unavailable. Adding breakpoints doesn’t make any difference.
I’ve used the CS50 IDE debugger previously for writing C programs and it really helped me understand how my code is working and what it’s doing exactly. I’d really like to be able to do the same thing for the JS challenges on FCC. If anyone has encountered similar problems, I would appreciate any advice on how to fix it or on what I’m doing wrong.