Every topic starts at New. Sign in and your practice counts.
Debugging refers to locating an error or a bug in the code. In Visual Studio .Net, Select Run from the menu and apply choose 'Run Debugging'. Thereafter, you will get the Debugging menu with some buttons and a debug console. Rather than every time accessing the menu and choose options from there to debug the code, the debugging menu is quite handy and allows you to 'Pause/Continue' your debugging code with the first button.
'Step Into' will go through the code line by line, as the program will normally execute, so that you have a thorough tracing capability of the code.
To emphasize on lines where you want to check the values of variables, you can assign a breakpoint as shown in fig-40.
<> html 5.html <> 14.html <
E: > 11 Class Computer Science Book > Chapter 3 > html > <> 14 <IDOCTYPE html> <html> <head> <title> Arrays in javascript</title> </head> <body> <script type= "text/javascript"> var Arr ; document.write("Array is:", Arr); </script> </body> </html>
Fig-41 : Assigned Breakpoint in code