Last post Nov 12, 2010 11:12 AM by gijigae
Nov 11, 2010 11:50 AM|gijigae|LINK
Do we have any good resource for how-to-debug on DD?
I have heard quite a few people mentioned that it is diffcult to debug DD since as you step through the codes you eventually step into wrapped up DLLs.
How do you usually debug DD?
For example, recently I started a DD site and everything went well and a menu screen is displayed.
When I clicked on the Employee table, the "List.aspx" screen is loaded with empty GridView when there are quite a few records in the Employee table.
I tried to debug to see what went wrong, but was not able to find it out.
In this case, how would you find out problems?
Nov 11, 2010 05:51 PM|sjnaughton|LINK
Hi Gijigae, remember that everything you can debug is a template or user control, so lets say you are debugging Employees table then add a break point to the ~/DynamicData/PageTemplates/List.aspx.cs this is the default List page page template.
If you have custom pages then the List.aspx.cs would be in the ~/DynamicData/CustomPages/Employees folder.
No lets say you are debugging the Edit page and want to look at what is happening to the StartDate field you would debug the DateTime_Edit.ascx.cs field template in the ~/DynamicData/FieldTEmplate folder.
Hope that helps [:)]
Dynamic Data 4
Nov 12, 2010 11:12 AM|gijigae|LINK
Your explanation certainly gave me some starting point. Thank you!
I think the point you made on templates and user controls is very critical to understand Dynamic Data way of doing things.