PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Debugging unmanaged code in VS.NET 2005

Reply

Debugging unmanaged code in VS.NET 2005

 
Thread Tools Rate Thread
Old 03-03-2006, 08:37 PM   #1
n33470
Guest
 
Posts: n/a
Default Debugging unmanaged code in VS.NET 2005


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/.../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

  Reply With Quote
Old 06-03-2006, 01:24 PM   #2
n33470
Guest
 
Posts: n/a
Default Re: Debugging unmanaged code in VS.NET 2005

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

n33470 wrote:
> 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/.../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


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off