13a. Debugging JavaScript in HTML

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Yes, modern browsers do have built-in debuggers which I do minimally demonstrate at the end. This video has a target audience of very beginner programmers. Practicing concatenating alert messages improves skill and understanding. Also, the learning to use debugger itself adds more content to learn.

I highly recommend learning and using the debugger as soon as anyone is ready.

professorcdragon
Автор

at first i thought this was recorded 10 years ago :)
this is a very nice walkthrough, if you have no other options (e.g. Safari)
however nowadays modern browsers allow javascript to invoke the built-in debugger

just write "debugger;" instead of "alert('whatever');" and step-by-step debugger comes up, you can watch variables, run the code line-by-line and all the other bells and whistles ;)

lorincszabo
visit shbcf.ru