Avatar of ElrondCT
ElrondCTFlag for United States of America asked on

Debugger stepping into non-user code

I had a hard disk crash a couple of weeks ago. (Yuck, but online backup really worked.) After reinstalling Visual Studio 2008, when I run an application with the debugger, going step by step (pressing F8) is causing the debugger to step into non-user code marked with <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()>. I have the debugging option Enable Just My Code checked, which the documentation indicates should cause code with that attribute to be skipped.

I've tried unchecking and rechecking the Enable Just My Code box, which makes no difference. Any ideas on what may be causing this to happen? Anything other than holding down the Shift while pressing F8 to prevent the unnecessary steps?
Visual Basic.NET.NET Programming

Avatar of undefined
Last Comment
ElrondCT

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Miguel Oz

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
ElrondCT

I tried resetting all the settings to the Visual Basic Development Settings, and it made no difference. I'd be more willing to do a reinstall if it weren't for the fact that the problem first manifested itself after doing a reinstall on a new disk. Interestingly, I found a saved settings file from last year, when I'm quite certain this problem wasn't present; importing that made no difference.
ASKER
ElrondCT

Ended up needing to reinstall VS for a separate reason (enabling IIS and web services), and after the reinstall, the problem has gone away.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck