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 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?
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.
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.
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.
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
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
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
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
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.
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
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.
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
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
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.
is working on a reply...