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
ASKER CERTIFIED SOLUTION
Avatar of Miguel Oz
Miguel Oz
Flag of Australia image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of ElrondCT
ElrondCT
Flag of United States of America image

ASKER

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.
Avatar of ElrondCT
ElrondCT
Flag of United States of America image

ASKER

Ended up needing to reinstall VS for a separate reason (enabling IIS and web services), and after the reinstall, the problem has gone away.
.NET Programming
.NET Programming

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

137K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo