From the course: Visual Studio 2019 Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
See debug information with DataTips - Visual Studio Tutorial
From the course: Visual Studio 2019 Essential Training
See debug information with DataTips
- [Instructor] When you are debugging, you need to see the information stored in variables in other objects in your code. Data tips and data visualizers are provided by visual studio to show you this information. In this video, I'll look at the data tips, which are floating tool tips, which display the value of the variables. I'll be working in this code file, mainwindow.zaml.cs, and the code I'll be using is in this example method. If you watched other videos in this chapter, you've seen me use breakpoints. Line 27 shows you another way of adding a breakpoint to your code. Calling system.diagnostics.debugger.break is a programmatic way of adding a breakpoint. Look at line 25. I'm checking to see if I'm running under a debugger before calling the break method. At this point, I'm ready to debug my code. Here's another way of starting a debug session, by clicking start. I'll click on my button, and you see that I hit this line of code where it says debugger.break. The next step is to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Set the start-up project49s
-
(Locked)
Use breakpoints effectively6m 27s
-
(Locked)
Step through code in the debugger7m 21s
-
(Locked)
Modify code while debugging with Edit and Continue3m 32s
-
(Locked)
See debug information with DataTips4m 51s
-
(Locked)
Use the Watch, Locals, and Autos windows5m 13s
-
(Locked)
Beyond the basic breakpoint9m 2s
-
(Locked)
Evaluate performance with PerfTips3m 50s
-
(Locked)
-