From the course: Visual Studio: Advanced Debugging Tools

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Add comments and flags to code map

Add comments and flags to code map - Visual Studio Tutorial

From the course: Visual Studio: Advanced Debugging Tools

Start my 1-month free trial

Add comments and flags to code map

- [Instructor] A Code Map does a decent job of arranging your code, these method calls, and figuring out what your code is doing and showing it to you on this map. Microsoft has made this flexible, so that we can add our own metadata to this map. For instance, let's say that we decide that this RollDice is not random enough, so I need to make a comment on this. I'll right click, choose Edit, and then New Comment. To be clear, this is not a code comment. This is specific to the Code Map itself, and of course, I can move this around, drag it to new locations. In fact, I can do that with all of these nodes in the map. Another thing I'd like to do is put some sort of flag on these two randomized methods because I need to look at them later. I'm going to right click, choose Flag for Follow Up. I can do a red flag or I can choose these other colors, so I'll do a red flag for the first one, and really all that does is put a…

Contents