Monday, May 11, 2009

debugging tips and tricks in vs2008

Step Filter for Managed Code
When right click
- Can step over Properties and OPerators of Classes
- step into specific property
- I will like this one the most I think as i cant tell you how many atimes I had to step trough gets for properties being passed in to functions
BreakPoints
- Tracepoints - Print variety of step points w/o stopping
- This will be usefull when you call code repatedly to see valuse as they happen w/o stopping it with breakpoints continously
Symbols
- never ship w/o archiving them
- symstore - comes with window debugging tools
- can open application for just debugging when picking opne project
- VS never loads mismatched sybols - will never happen
Multi-threading Debugging
- VS runs about 30 theaads when debugging
- ctl-alt h Thread window
- added tips over location column to see (better to name thread tho using thread.name)
- can filter break points on name, so you can see specific threads
Post Mortem Debugging
- can set so MS error/log mails actually go to us not MS
- while debugging can create a dump of memory to look at later or elsewhere
Data Viewing
- Use the DebuggerDisplay attribute to customize your values
- use beguggerbrowsale attribute to not see proprties (`set to never)
Added some system variables that will show various information (2 shown below)
$user - finds user and sid the thread is run ning on
$env - enviromnet appp is running under

No comments:

Post a Comment