As I was prepping for this year's User Conference, it occurred to me how far we've come in just a year. Last year I had the distinct pleasure of introducing and demonstrating Version 9, which was still very much a beta at that point, to everyone at the User Conference. I proceeded to run through an overview of Version 9 and talk about all of the great new features and benefits it would provide. Immediately afterwards I spoke to quite a few people that were very excited about Version 9, but there was one question that kept coming up, "Will I be able to debug in Version 9?" I'm sure that no less than 10 people asked me the same question, and my response was the same, "No, but the architecture will support us adding this in the future." Well the future is here today.
So, here I am trying to get my demo together for the User Conference and I'm having some issues. I press Debug on the ribbon bar and Visual Studio opens up with all of code from my process.

I find the activity I think is causing the problem and put in a breakpoint. I go into IE and start testing my demo, when all of the sudden Visual Studio starts flashing at me. What the! I haven't even gotten to what I thought the error is. I open up Visual Studio and it tells me that I have an unhandled exception in my Write to File activity.

Doh! It seems like when I copied over the solution, I didn't setup the correct path needed to create the file. At least that is easy to correct.
A few things to mention if you want to play around with the new debugging capability. You'll need a single machine environment (Engine, Web, Designer) along with Visual Studio 2008. We haven't fully tested 2010 yet (it was only available a few weeks before release), but the team is telling me that they are using it already. After installing SR1 you'll need to use Add/Remove Programs to install the Metastorm Diagnostics Service, and then you'll need to make sure its web.config has the correct DB credentials. You'll be able to find the config file under \Metastorm\BPM\Engine\Diagnostics\ProcessDiagnosticsService.
Get the Raid out and happy debugging!