0

What is DEBUGGING? It is obligatory to do it?

I installed a code editor and it won't let me run the code without doing that, but I don't know what it is.

24th Apr 2020, 1:53 AM
Ignacio Moreno Vivot
Ignacio Moreno Vivot - avatar
3 Answers
+ 3
Ignacio Moreno Vivot As Martin Taylor explained, you won't be able to debug HTML as you would an imperative programming language like Javascript. You can use the Developer Tool in your Chrome browser to view the state of the loaded DOM, which is initialized by the HTML file. If you are trying to attach the VS Code debugger to a browser instance, you'll need to add a configuration to your launch.json file. This can get a little involved depending on what you want to debug. I personally prefer debugging client Javascript using the Developer Tool in Chrome. However, the ability to debug Javascript unit tests in VS Code comes in handy as you can't run Jest or Mocha tests in the browser. At least, I'm not aware that you can. 😉 Here's a link to help you set up launch.json for debugging Javascript within VS Code. https://code.visualstudio.com/docs/editor/debugging#_launch-configurations
24th Apr 2020, 2:57 AM
David Carroll
David Carroll - avatar
+ 3
Ignacio Moreno Vivot If you are using Microsoft Edge (Chromium), you might be interested in the VS Code extension mentioned in this post. Check out the animated GIF on the extension webpage. https://www.sololearn.com/post/350432/
24th Apr 2020, 3:32 AM
David Carroll
David Carroll - avatar