I'm trying to debug a couple broken packages, packages that seem to run fine for others but not on our site. I added breakpoints to the package but Umbraco seems to be ignoring them. How can I go about setting breakpoints in a package and debugging it?
I am not sure where you've set the breakpoints. I'm assuming you've downloaded the source code of the package and you've opened it in Visual Studio. If the symbols (.pdb) file of the dll is available in your umbraco install then you can attach Visual Studio to your worker process and it should hit the breakpoints that you've set.
I did download the source code, added a breakpoint, copied the .dll and the .pdb file to the server. I'm fairly new to .NET so don't know how to attach VS to the worker process.
How to debug Packages?
I'm trying to debug a couple broken packages, packages that seem to run fine for others but not on our site. I added breakpoints to the package but Umbraco seems to be ignoring them. How can I go about setting breakpoints in a package and debugging it?
I am not sure where you've set the breakpoints. I'm assuming you've downloaded the source code of the package and you've opened it in Visual Studio. If the symbols (.pdb) file of the dll is available in your umbraco install then you can attach Visual Studio to your worker process and it should hit the breakpoints that you've set.
I did download the source code, added a breakpoint, copied the .dll and the .pdb file to the server. I'm fairly new to .NET so don't know how to attach VS to the worker process.
CTRL+SHIFT+P, make sure that "Show processes on all sessions" is check ON and select w3wp.exe in the list, then click the Attach button.
If there's multiple w3wp's you can identify them by the app pool that your site is running in (User Name column), or you could just try them all.. :)
Hope this helps!
is working on a reply...