Using Debug Attributes in Your Code

In the section “‘Just My Code’ Debugging,” I explained how some attributes can influence the debugger’s behavior versus auto-generated code and that you can use versus your own code. The .NET Framework also provides other attributes that you can use to decorate your code for deciding how the debugger should behave versus such code. Table 5.4 lists other attributes that complete the list in Table 5.1.

Table 5.4 Debug Attributes

image

As previously described in this chapter, discussing custom debugger visualizers is beyond the scope of this book, so the DebuggerVisualizer attribute is not discussed here.

Note on Debug ...

Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.