I am building several user controls for Umbraco and am currently publishing them, moving the dlls into a working umbraco instance and testing if they work. I now, however, need to debug a user control using break points but the problem is, the user control uses actual data from the umbraco database. How do I go about debugging a user control within an umbraco instance?
Fire up visual studio (you probably have as you've developed a user control), set your breakpoints, attach to the w3wp.exe process, browse your site (and the page the user control is on) and your breakpoint should be hit, assuming you're of course running your website in debug mode (can be set in web.config).
Thanks Dirk, it worked beautifully! I thought I would have to design my user controls from within the umbraco source and some how mess around with debugging conditions to skip the installer and connect to my db and cause all kinds of havock....
Debugging user controls within an Umbraco site
Hi all,
I am building several user controls for Umbraco and am currently publishing them, moving the dlls into a working umbraco instance and testing if they work. I now, however, need to debug a user control using break points but the problem is, the user control uses actual data from the umbraco database. How do I go about debugging a user control within an umbraco instance?
Thanks,
Max.
Fire up visual studio (you probably have as you've developed a user control), set your breakpoints, attach to the w3wp.exe process, browse your site (and the page the user control is on) and your breakpoint should be hit, assuming you're of course running your website in debug mode (can be set in web.config).
Hope this helps.
Regards,
/Dirk
Thanks Dirk, it worked beautifully! I thought I would have to design my user controls from within the umbraco source and some how mess around with debugging conditions to skip the installer and connect to my db and cause all kinds of havock....
Cheers! :)
Max
is working on a reply...