Debugging Your Assemblies Generated from STSDEV

If you've gotten sufficiently comfortable generating solutions with STSDEV, you've probably found that debugging doesn't seem to work. The reason is because the DebugBuild configuration is the only configuration that includes Debug code.

Here's how to set up your project so that you can debug the other builds:

Go to your Project Properties, click the 'Build' tab and turn on 'Define DEBUG Constant' and 'Define TRACE Constant'.

Then click on the 'Advanced' button at the bottom of the Build configuration screen and change the 'Debug Output' value to 'full'.

This tip came from the STSDEV discussion forum.

Comments

Anonymous said…
Thanks!!!

I just spent two days in circles chasing the pdb.
Anonymous said…
Great,
Thank you very much. I spent hours on searching how to debug my assembly and tried countless variations to get debugging working. This was the solution fot he problem
Anonymous said…
Good finding! Saved me (and probably my team too) heaps of time.

Popular posts from this blog

Programmatically Update Page Layouts

Microsoft Virtualilzation Headaches

ERROR: Failed to create feature receiver...