The Visual Studio .NET 2005 debugger is not working with my console
applications.
I have a simple console application that writes a message to the
console window then waits for the user to press a key. When I press F5
to execute, I get a successful build, but the console window is never
displayed. When I execute with a breakpoint set, I get the same
results. The output window displays the message "Skipped loading
symbols. Module is optimized and the debugger option 'Just My Code' is
enabled." The application works correctly if I execute without
debugging.
I have no problems debugging ASP.NET applications.
I have tried repairing and then reinstalling Visual Studio and .NET 2.0
framework. No luck.
Any suggestions?
Thanks in advance.
Oleg Starodumov - 27 Apr 2006 18:00 GMT
> The Visual Studio .NET 2005 debugger is not working with my console
> applications.
[quoted text clipped - 7 lines]
> enabled." The application works correctly if I execute without
> debugging.
Make sure that optimizations are disabled in the project settings
(e.g. for a C# project: Project properties | Build | "Optimize code" <-- uncheck it)
Also consider checking the following setting:
Tools | Options | Debugging | General | "Suppress JIT optimization on module load"
Regards,
Oleg
[VC++ MVP http://www.debuginfo.com/]