+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Debugging custom controls

Debugging custom controls

6 posts, 0 answered
  1. Guenni
    Guenni avatar
    8 posts
    Registered:
    14 Jul 2008
    28 Apr 2009
    Link to this post
    Hi
    I created a custom control within Visual Studio 2008 (BMICalc.ascx) and upload it to the Sitefinity toolbox. With drag and drop this control is added to my page. The control does display but doesn't calculate. I tried adding a breakpoint on the custom control's codebehind but it's being ignored. Can i run the website from VS?

    How do I debug my custom controls?

    I appreciate your help!
  2. Gabe Sumner
    Gabe Sumner avatar
    440 posts
    Registered:
    09 Sep 2007
    28 Apr 2009
    Link to this post
    You can absolutely run Sitefinity in Visual Studio.  I'm assuming you have a local copy of the web site.  Just open the web site in Visual Studio, right-click the site in Solution Explorer and click View in Browser.

    Gabe Sumner
    http://www.sitefinitywatch.com/
  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    29 Apr 2009
    Link to this post
    Hi,

    Sitefinity is ASP.NET web application so it works as other standard web applications. You can debug your code running VS debugger.

    Let us know if there is anything else that we can do for you.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  4. RSewell
    RSewell avatar
    54 posts
    Registered:
    25 Apr 2007
    20 Oct 2010
    Link to this post
    When I right-click the site in Solution Explorer and click Open in Browser, I get a directory listing of the site's files in a browser.

    If I click Debug > Start Debugging, I get the admin login page.

    Normally, to debug a web app I'd select one of the files to be the start page, or I'll open a page in the editor then start the debugger.  But the home page is in the database.  So how does one debug a site that mostly resides in the database?
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    20 Oct 2010
    Link to this post
    Hi RSewell,

    By default the logic comes from the controls you have dropped on a page. So, you can debug all controls you have created and you have dropped on a given page.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. RSewell
    RSewell avatar
    54 posts
    Registered:
    25 Apr 2007
    20 Oct 2010
    Link to this post
    How?  Do I start the debugger which runs the Sitefinity Administration log in page, then navigate to the page with the control?
Register for webinar
6 posts, 0 answered