Well I stumbled upon a way to do it in x64, and it is pretty easy. I use VS2008 in Windows Server 2008 x64.
I don't know why, but the basic point is that you can't attach to a process with the Workflow code type in x64. If you have run a workflow in the current running process, it will be selected in the code type to debug, giving the access denied error, thus debugging won't work. But, if you attach to the w3wp process BEFORE it does that (after restarting IIS and before running any workflows), once you run the workflow it will debug.
So basically,
- Restart IIS
- Warm up a page, but DON'T run a workflow
- Attach to the process(es)
- Run the workflow, and your breakpoints should be hit.
Helped me out after losing a lot of precious time. Thanks !
ReplyDeleteExcellent!! Thanks for the solution :-)
ReplyDelete