debugging - Exclude certain projects from stepping through during debug in VS2010? -
i working on couple of projects (a , b) in large vs2010 solution (all in c#). there many cases methods project call through 1 or more of projects in solution not responsible, in turn call through project b. when stepping through debugger project a, forced step through host of methods in these other projects, in have no interest, before reach call project b. further, when stepping out of project b, have step way through call stack of uninteresting methods before project a.
i working around setting breakpoints @ entry , exit points in projects , b, find lot of time spent setting these breakpoints in correct places, , feel life lot easier if disable step-through projects.
i aware of debuggerstepthroughattribute, use not workable in situation (i) have add in many places , (ii) guys in office interested in stepping through code not happy.
any ideas?
yes, possible enabling code , preventing symbol loading dlls don't care about.
to enable code:
- debug » options , settings... » general » check "enable code (managed only)".
to prevent symbols loading dll:
- debug » options , settings... » symbols » click "all modules, unless excluded"
- click "specify excluded modules"
- add names of modules want exclude. symbols not loaded when debug application.
now, when f11 step-into project project b goes through project c, long don't have symbols c loaded, step-into go directly b.
to ensure symbols c aren't loaded:
- start debugging
- get point c loaded
- open modules window (ctrl+alt+u), scroll entry c
- the "symbol status" column should "loading disabled include/exclude setting."
Comments
Post a Comment