Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 6 Next »

The first step to debugging a Custom Schema Provider is to make sure your project is set to compile in Debug mode as opposed to Release mode.  The next step is to set a Start Up application so any of your break points inside of your Custom Schema Provider get hit while running CodeSmith Generator. To do this you will want to go into the Project's Properties page by right clicking the Project in Solution Explorer and selecting Properties. Next navigate to the Debug tab and set the Configuration drop down list to All Configurations. Next under the Start Action Section choose the Start External Program. You will want to browse for the application you want to test the Custom Schema Provider with. In almost every case you will want to check out the Custom Schema Provider with CodeSmith Generator Explorer (C:\Program Files\CodeSmith\<Version>\CodeSmith.exe). 

Please configure the Build Directory before debugging to ensure your breakpoints are hit and your latest changes take effect.

Please note that if you are debugging an existing Schema Provider that ships with Generator. You will need to change the providers assembly file name (project tab) as well as the value returned by the providers the IDbSchemaProvider.Name property.

Next, set a break point in your project and start debugging!

  • No labels