From the course: Visual Studio Essential Training
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Valid breakpoint locations - Visual Studio Tutorial
From the course: Visual Studio Essential Training
Valid breakpoint locations
- [Instructor] In this video, we'll be looking at the code in this other button handler, this BreakButton_Click event handler. Some of the code that's in here is declaring some numeric variables and doing some calculations. One caveat of using break points is that you cannot put a break point on a line of code that is not going to execute. So for example, line 42 is a comment that's not executable. If I press F9 or go over here and click on the gray border, nothing's happening. Well, something's happening, but it's not as obvious. Look in the lower left, there's a message that says a break point could not be inserted at this location. So I can't put one here on the comments. I also can't put a breakpoint here on line 39 where I'm declaring this variable. There's no code executing there. However, on line 40, I can put one and the same on line 41. What about the method declare? If I try to put a break point on line 36, Visual Studio puts the break point on the first curly brace that's…
Contents
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Explore the debug tools7m 29s
-
(Locked)
Set the startup project1m 37s
-
(Locked)
Attaching the debugger3m 13s
-
(Locked)
The ways to add breakpoints3m 35s
-
(Locked)
Valid breakpoint locations3m 11s
-
(Locked)
Step through code in the debugger5m 21s
-
(Locked)
Navigate through code while debugging3m 33s
-
(Locked)
Step over and step out debugging2m 16s
-
(Locked)
Modify code while debugging with Hot Reload4m 11s
-
(Locked)
See debug information with DataTips2m 50s
-
(Locked)
Pinning DataTips3m 5s
-
(Locked)
Autos and Local: dynamic watch windows5m 53s
-
(Locked)
Custom expressions in the watch window3m 39s
-
(Locked)
Use breakpoint conditions2m 52s
-
(Locked)
Trace debug information with Action breakpoint1m 53s
-
(Locked)
Use hit count breakpoints2m 21s
-
(Locked)
Target all method overloads with a Function breakpoint2m 48s
-
(Locked)
Manage breakpoints with the Breakpoint window3m 20s
-
(Locked)
Evaluate performance with PerfTips4m 6s
-
(Locked)
-