• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 407
  • Last Modified:

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?
  • 2
1 Solution
Miguel OzSoftware EngineerCommented:
This is a tricky one because we do not know how badly affected is your VS installation.
You can try resetting the environment as per the_mandril answer in this link.

Chances are you may need to repair or worst scenario reinstall VS2008 in this PC
ElrondCTAuthor Commented:
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.
ElrondCTAuthor Commented:
Ended up needing to reinstall VS for a separate reason (enabling IIS and web services), and after the reinstall, the problem has gone away.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now