The following module was built either with optimizations enabled or without debug information
I was getting this annoying message every so often when I would build my solution in Visual Studio 2005.
I'm not really sure what it changed (or why I was getting the message), but this fixed it for me:
- On the VS 2005 menu, go to Tools => Options => Debugging => General.
- Uncheck: 'Enable Just My Code (Managed Only)'

3 comments:
This makes the error message disappear but it doesn't help otherwise, right? For me at least it didn't help because even after unchecking that box and trying to attach to process none of my breakpoints will be hit and when I open the Modules-window it says "Cannot find or open the PDB file". I have no idea how it suddenly can't find the PDB file. Have you figured something out?
Thanks in advance
Magnus, Sweden
please write me on m4gnus at google semailservicethatis5letterslong dot com
Not being able to find the PDB file sounds like a different issue than I was getting. My breakpoints were getting hit fine, but then again, I did have all my PDB files in the bin directory with my DLLs.
Check your bin folders in each class of your solution for PDB files. If they're not getting built for your classes and you're building in debug mode, you'll need to check and make sure that each class project is set to get built in Debug mode.
Those PDB files are necessary for VS2005 to be able to step through your code in Debug mode.
I solved it by reinstalling the service. :) I have no idea why it didn't find the PDB-files though or how I could tell it where they were.
Magnus
Post a Comment