Re: c# include c++ and debugging

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Dan Bass (danielbass)
Date: 01/05/05


Date: Wed, 5 Jan 2005 11:29:23 -0000

Assuming your using Visual Studio .Net, I've seen two ways of doing this.
Got to Project -> properties then look for the Debugging in the left pane.

 1. Project -> [project] Properties -> Configuration Properties ->
Debugging -> Enable Unmanaged Code [Set to True]

OR

 2. If the first option doesn't exists, then there's an option for what code
to debug. The project settings will probably be set to debug "Auto". This
means it will detect whether the startup code is initially managed, or
native, and then only debug from there in that code type. IE. start up is
managed, only managed will be stepped through in that debug session, if
start up is native, then managed cannot be stepped through.
The setting can be change to Native, Managed, or Both as well. Select "Both"
and you should be sorted.

Thanks.

Dan.

"thomas" <t.wegener@mum.de> wrote in message
news:ejXFkax8EHA.3616@TK2MSFTNGP11.phx.gbl...
>I have an c# exe-application which referenced a managed c++ dll.
> The managed c++ dll is an wrapper for some unmanaged c++ classes in a
> separate dll.
>
> That works fine but I can't debug in the unmanged c++ dll.
> Is there anyone who know why I can't debug in the unmanged c++ dll?
> Or is ther any way to do this?
>
> --- snip ---
>
> e.g. managed c++ dll:
>
> I can't debug in the method CppClass::Something().
>
> #using <mscorlib.dll>
> using namespace System
>
> public __gc class CppWrapperClass
> {
> private:
> CppClass m_class;
> public.
> void test()
> {
> m_class.Something();
> }.
> }
>
> --- snip ---
>
> Thanks in advance
> Thomas
>



Relevant Pages

  • Re: Menu item "Detach all" is disabled
    ... debugging" option is not checked in project settings. ... Also, if you open Processes window (the one at Debug | Windows | Processes menu), ... If you r-click on the process in this window, ... deactivated it in the options menu but in the project settings it was still enabled. ...
    (microsoft.public.vsnet.debugging)
  • Re: Office or InDesign breaks VS 2005 debugging?
    ... Given tha I was using and debugging the sub-projects in this solution before ... some getting used to) and the debug symbols for the child project are no ...
    (microsoft.public.vsnet.debugging)
  • RE: Step by Step skips large chunks of code
    ... project settings it is in debug mode and no optimization is set. ... We have several similar projects that debug fine, ... Microsoft Online Community Support ...
    (microsoft.public.vsnet.debugging)
  • Re: Cant Debug COM Interface
    ... When I start to debug the application the DLL is ... a com client in vb.net which is referencing the interface of the COM Server ... If I use this application as Host application I can debug without ... For debugging I can start the ...
    (microsoft.public.vsnet.debugging)
  • Re: C++ Workable Mainframe Debuggers
    ... you have to be able to read assembler to do ... IBM Debug Tool for z/OS is available. ... You can license Debug Tool as MLC or, in the form of the Debug Tool ... For graphical debugging use Rational Developer for System z (or ...
    (bit.listserv.ibm-main)