Copied to clipboard

Flag this post as spam?

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


  • Emilio 4 posts 24 karma points
    Dec 26, 2010 @ 00:53
    Emilio
    0

    Debugging with Visual Web Developer Express

    Hi all,

    I'm sorry if I ask a stupid question. I found a lot of threads about debugging on the forum but I were not able to get the answer.

    Visual Web Developer Express miss the "attach to process" option for debugging, so I wonder how to debug the Umbraco website when running on IIS7 on Windows Vista. I don't want to extend Umbraco, just need to develop user controls, use them in Umbraco templates and debug them when running. 

    Thank you very much for your help.

    Emilio

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Dec 26, 2010 @ 01:20
    Jan Skovgaard
    0

    Hi Emilio

    Maybe the ?umbdebugshowtrace=true querystring is an option for you then?

    You can read more about it here: http://www.cpalm.dk/blog/2008/01/20/umbraco-debugging-made-easy.aspx

    /Jan

  • Emilio 4 posts 24 karma points
    Dec 26, 2010 @ 08:44
    Emilio
    0

    Hi Jan,

    thank you for your hint, I find the ?umbracodebugshowtrace=true option very useful and the bookmarklet idea too, but there are situations in which debugging code step by step inside Visual Studio could be handy. Is this possible to set up Visual Web Developer Express to do so with Umbraco or do I need to upgrade to Visual Studio?

    Thank you again.

    Emilio

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Dec 26, 2010 @ 09:51
    Aaron Powell
    0

    VWD doesn't have an attach to process option? Well then you're going to have to run Umbraco through Visual Studio itself. You'll need to create a web application project, add all the files into it and then you just use it like any other ASP.Net project.

    I don't use VWD so I don't know if you can get that to go through IIS, if not you'll only be able to use Cassini, which shouldn't be a major problem.

  • Emilio 4 posts 24 karma points
    Dec 26, 2010 @ 13:14
    Emilio
    0

    Hi Slace,

    Thank you for your suggestion.

    In order to support ASP.NET 4.0 I had to upgrade from Visual Web Developer Express 2008 to 2010 (to do so I also had to upgrade from SQL Express 2005 to 2008). Now I can debug Umbraco using Visual Web Developer Express by running Umbraco itself in Cassini. Maybe this is not the best setup for versionig, but seems to work perfectly.

    Thank you.

    Emilio

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Dec 26, 2010 @ 13:25
    Aaron Powell
    0

    I don't see how it'll impact on versioning, I've used the above process (which I've also blogged about: http://www.aaron-powell.com/how-i-developer-umbraco ) in countless projects.

  • Emilio 4 posts 24 karma points
    Dec 26, 2010 @ 17:25
    Emilio
    0

    I'm a beginner at Umbraco developing and at first glance (also thinking about Umbraco upgrades) I thought that using a separate web application with post build events (as I saw in introductory video from Umbraco and in other forum posts) would achieve a better separation of my files from Umbraco ones (this isn't probably the case).  I've just finished reading your post, very useful to know how you set up your projects.

    Thank you again.

    Emilio

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Dec 26, 2010 @ 23:31
    Aaron Powell
    0

    I use to work that way but found it more of a pain than an advantage because:

    a) You have to debug as an admin under Vista & 7, and since my Windows account I use each day is not an admin (you don't need admin access daily!) it's a pain

    b) If not everything is in the one place it's a bit harder to have a source control setup which is just clone -> run

    c) Unless you're going out of your way to put stuff in the umbraco folders I don't see how separation is a concern

  • czy 12 posts 32 karma points
    Jul 17, 2012 @ 17:15
    czy
    0

    Debug in umbraco is quite easy in Vistual Studio. The key points are selecting "Use IIS Express" and two other settings in Build tab.

    Please refer to Debug in Umbraco for more details. I will be glad to answer your questions.

Please Sign in or register to post replies

Write your reply to:

Draft