Debugging Tools Use Debug Menu and Debug options on VB Standard toolbar. Place Debug.WriteLine method in code. Set BreakPoints to stop at a particular location in code and watch what happens. Step Into, Step Over, Step Out Edit and Continue Locals Window, and Autos Window View the values of properties, variables, mathematical expressions, and conditions. Debug Menu and Toolbar The debugging buttons on the VB standard toolbar The debugging options on the Debug menu showing the keyboard shortcut keys Writing to the Immediate Window Debug.WriteLine(TextString) Debug.WriteLine(Object) Debug.WriteLine("calculateButton procedure entered") Debug.WriteLine(quantityTextBox) Breakpoints Toggle Breakpoints On/Off by clicking in Editor's gray left margin indicator. Edit and Continue When attempting to continue execution after making changes in Debugging mode, this dialog box appears if the edits are too major?Click Restart to recompile and run again. The Locals Window: Not in Express Shows values of local variables that are within scope of current statement Autos Window: Not in Express Automatically adjusts to show variables and properties that appear in previous and next few lines
Want to see the other 8 page(s) in Debugging_student.ppt?JOIN TODAY FOR FREE!