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

See debug information with DataTips - Visual Studio Tutorial

From the course: Visual Studio 2019 Essential Training

Start my 1-month free trial

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…

Contents