Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Max Mumford 266 posts 293 karma points
    Aug 31, 2011 @ 18:44
    Max Mumford
    0

    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.

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Aug 31, 2011 @ 21:10
    Dirk De Grave
    0

    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 

  • Max Mumford 266 posts 293 karma points
    Sep 01, 2011 @ 14:37
    Max Mumford
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft