Catch attach process in order to debbug user control
I'm having a bit of trouble with attaching a debug process so that I can debug a user control.
I've created a simple user control in a new visual studio 2008 project that just handles a button click. As per the tutorial video i have then copied the user control and associated dll file across into the umbraco user control folder and bin folder. I've also then created a macro to reference this user control and insert into my template.All works fine and the associated user control displays on the template page correctly.
However, when i go into my VS 2008 project and try to attach a debug process there is no w3wp.exe process to attach to? I'm using Windows 7. I've tried to attach to various other processes (e.g. devenv.exe, iisexpress.exe, webmatrix.exe) and non are catching the debug point that i've placed in the user control.
On ther other hand i've also tried opening the umbrco project in VS 2010 from the WebMatrix environment, where I then created a new sub project in which I created my test user control. I then followed the process of copying over the user control and dll files into the umbraco folders. When run the debug point in this user control gets hit, which means i can create my user controls in the same solution as my umbraco project and debug the here.
However, it would be very useful to know how to debug user controls from seperate solutions? As i already have several user controls linked to webservices created in a seperate project that I am intending on using in my umbraco setup.
You should definitely be able to attach to the site. Is the site running on full blown IIS or something else? If so it really should be in the list - have you selected the checkbox at the bottom to "Show processes from all users"?
My site is being run locally on my machine using IISExpress, which i've tried to attach the process to however the break point still isn't hit. Yes i've also checked both the checkboxes on the 'Attach to Process' window.
Gotcha - I've never used IISExpress so probably can't help much - but instead of looking for w3wp I imagine it probably uses a different executable (iisexpress.exe?), so maybe try that if you haven't already.
Catch attach process in order to debbug user control
I'm having a bit of trouble with attaching a debug process so that I can debug a user control.
I've created a simple user control in a new visual studio 2008 project that just handles a button click. As per the tutorial video i have then copied the user control and associated dll file across into the umbraco user control folder and bin folder. I've also then created a macro to reference this user control and insert into my template.All works fine and the associated user control displays on the template page correctly.
However, when i go into my VS 2008 project and try to attach a debug process there is no w3wp.exe process to attach to? I'm using Windows 7. I've tried to attach to various other processes (e.g. devenv.exe, iisexpress.exe, webmatrix.exe) and non are catching the debug point that i've placed in the user control.
On ther other hand i've also tried opening the umbrco project in VS 2010 from the WebMatrix environment, where I then created a new sub project in which I created my test user control. I then followed the process of copying over the user control and dll files into the umbraco folders. When run the debug point in this user control gets hit, which means i can create my user controls in the same solution as my umbraco project and debug the here.
However, it would be very useful to know how to debug user controls from seperate solutions? As i already have several user controls linked to webservices created in a seperate project that I am intending on using in my umbraco setup.
Any help would be greatly appreciated.
Hi James,
You should definitely be able to attach to the site. Is the site running on full blown IIS or something else? If so it really should be in the list - have you selected the checkbox at the bottom to "Show processes from all users"?
-Tom
Hi Tom,
My site is being run locally on my machine using IISExpress, which i've tried to attach the process to however the break point still isn't hit. Yes i've also checked both the checkboxes on the 'Attach to Process' window.
James
Gotcha - I've never used IISExpress so probably can't help much - but instead of looking for w3wp I imagine it probably uses a different executable (iisexpress.exe?), so maybe try that if you haven't already.
is working on a reply...