Debugging unmanaged code in VS.NET 2005

N

n33470

I've got a CF 2.0 app that p/invokes methods in a C++ DLL. I have a
solution with both the CF project and the C++ project. I'd like to be
able to debug both the managed and the unmanaged code.

I've come across the following blog entry that leads me to believe that
I can do this:

http://blogs.msdn.com/davidklinems/archive/2005/06/02/424595.aspx

I've followed the steps as thoroughly as possible, and I can get pretty
far, but not all the way.
I've been able to start the debugger on the CF app, then attach to the
native code debugger to allow debugging inside of the C++ component.
No problem. However, at this point I'd like to detach the native
debugger and re-attach the managed code debugger, but I can't do this
part.

Can some of you other experts read this blog, and see if there's a step
missing on how to reattach back to the standard managed code debugger.
From the blog entry, this is from step 12 onward.

Thanks!

--steve
 
N

n33470

I've got it figured out. I was working in the PPC emulator, and I must
not have saved the state of the emulator with the registry key for
enabling managed debugging.

I've got this working now, and it's sweet to be able to debug from
managed, to unmanaged code, and then back again. I wish the process
was a little simpler so that I didn't have to constantly re-attach the
debugger, but I'll get used to it.

--steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top