Debugging… or not…

July 22, 2006

I was working happily in Visual Studio 2005 (with Visual Basic) when all of the sudden I couldn’t debug anymore.  It pops up this error message:

To debug this module, change its project build configuration to Debug mode. To suppress this message, disable the “warn if no user code on launch” debugger option.

Here is how I got it to work again:

Project | Properties | Compile tab | Advanced Compile Options…

Set the Generate debug info to pdb-only… Somehow this setting was set to None.

No idea how but there it is…