3

I want to prevent VS from attempting to debug code that is not mine. When I 'Step-Into' my code, VS tries to find resource files I don't have. I'm really not interested in viewing the 3rd party code code.

How can I only step through my managed code?

Followed this without success: Restrict Visual Studio 2010 from debugging third-party DLL files

Also changed JIT debugging to Managed only.

Community
  • 1
  • 1
Damo
  • 1,898
  • 7
  • 38
  • 58
  • 1
    Have you enabled "Just My Code"? – Cody Gray - on strike Jan 01 '12 at 17:35
  • In Options -> Debugging -> General "Enable Just My Code" is checked. – Damo Jan 01 '12 at 17:40
  • 1
    Why don't you just use Step-Over instead? That's what it is made to do. Only use Step-Into if you actually want to debug the code in the method that is getting called. Use Step-Out to fix accidents. – Hans Passant Jan 01 '12 at 18:40
  • ahh, I'm learning C# so I want to understand exactly what's going on. – Damo Jan 02 '12 at 11:26
  • What Hans suggests doesn't prevent you from knowing what is going on. If you end up in something that is not your code, just click "Step Out". I use this approach all the time. *Sometimes* I want to debug into framework code, but *most* of the time, I just want to see mine. – Cody Gray - on strike Jan 02 '12 at 22:46
  • Since writing this I've started using breakpoints more and as you both say, stepping over the 3rd party control. Thanks – Damo Jan 03 '12 at 21:46

1 Answers1

0

Using breakpoints and step over.

Damo
  • 1,898
  • 7
  • 38
  • 58