Monday, April 14, 2008

Debugging: No Locals, Breakpoint not being hit, etc in Visual Studio

Problem: sometimes, VS has trouble seeing Locals for optimized assemblies. Also, even with symbols loaded for a module, a breakpoint is not hit. Or you attach to the w3wp.exe process only to not see your module as loaded (and you know it is).

Solution: say your assembly is My.dll

  1. Create a file called My.ini
  2. Put this content into that file:
  3. [.Net Framework Debugging Control]
    AllowOptimize=0
    GenerateTrackingInfo=1

  4. Copy the .ini file to the location of the assembly in the GAC

10 comments:

Anonymous said...

What's up i am kavin, its my first time to commenting anywhere, when i read this post i thought i could also make comment due to this brilliant article.

Here is my blog :: The web’s premiere DJ community

Anonymous said...

Wonderful beat ! I wish to apprentice while you amend your site, how could i subscribe
for a blog site? The account aided me a acceptable deal.
I had been a little bit acquainted of this your broadcast offered bright clear
concept

Feel free to surf to my web-site ... Bruno Mars - Moonshine (Kim Viera Cover)

Anonymous said...

Hi there! This post could not be written any better!
Reading through this post reminds me of my old room mate!
He always kept chatting about this. I will forward this page to him.
Pretty sure he will have a good read. Many thanks for sharing!



Also visit my homepage - The web’s premiere DJ community

Anonymous said...

Fantastic blog! Do you have any tips and hints for aspiring writers?
I'm planning to start my own blog soon but I'm a little lost on everything.

Would you advise starting with a free platform like Wordpress or go for
a paid option? There are so many options out there that I'm totally overwhelmed .. Any recommendations? Bless you!

my web-site; solavei

Anonymous said...

It's actually a great and helpful piece of info. I'm glad that you shared this useful info
with us. Please stay us informed like this. Thank you for sharing.



Here is my webpage http://orig.likepoint.com/

Anonymous said...

all the time i used to read smaller content which also clear their
motive, and that is also happening with this article which I am reading now.


Also visit my site I Knew You Were Trouble (Kim Viera Cover)

Anonymous said...

It's an remarkable piece of writing in favor of all the online people; they will take advantage from it I am sure.

Look into my weblog ... wiki.oziosi.org

Anonymous said...

I'm really enjoying the design and layout of your site. It's a very easy
on the eyes which makes it much more pleasant for me to come here and
visit more often. Did you hire out a designer to create your theme?
Outstanding work!

My web-site :: solavei

Anonymous said...

Hey There. I found your blog using msn. This is an extremely well written article.
I will be sure to bookmark it and return to read more of your useful
information. Thanks for the post. I will definitely return.


Here is my homepage ... http://innovaglobalgroup.com

Anonymous said...

Marvelous, what a blog it is! This web site presents useful facts to us,
keep it up.

Visit my weblog; hosting0340540.az.pl