Re: Strange Debugger Problems




> What gives? Why can I hit f5 to and debug with no problem when I pretend my
> non-managed project is a managed project by using the "/clr" option? Is there
> a difference between the debuggers that managed c++ and non-managed c++ use?
> If so this may lead me to finally figure out how to fix my problem.
>

Yes, there are different debug engines used by VS.NET when debugging managed
and unmanaged applications (called Native and CLR, respectively). They can be used
separately, or they can be used together (mixed mode, or interop).

There are two ways to specify the engine:
1) Using project settings
Project properties | Configuration Properties | Debugging | Debugger Type
(though I remember that in a previous message you said that it's "Auto", which
is usually good enough - anyway, what setting is there now? What happens
if you try other settings?)
2) When attaching to the running application
(in Attach to Process dialog, you can select "Common Language Runtime" or "Native"
engine, or both - which do you use?)

>From your description it looks like the debugger has a problem choosing the correct
debug engine for the application when it is starting under debugger, though does not
have this problem when attaching to it (if you choose "Native" in Attach to Process
dialog, of course). Take a look at the information here, may be there is something
that can help:
http://blogs.msdn.com/greggm/archive/2004/07/08/177774.aspx

Oleg






.



Relevant Pages

  • Re: Breakpoint instantiation
    ... I have a platform compiled for debug build, with KITL and Kernel debugger enabled. ... With all these settings enabled, ... When you start the module the breakpoint will become a dark red dot/circle. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Topic: .NET/COM Interop in VB6 MSProject Addin
    ... "Martin Boehm" wrote: ... Select Debug from configuration settings ... >> tried to deploy on several test machines. ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Device emulator debugging using VS2005 with PB for CE 6.0
    ... Even after making sure the settings Build ... Could you please tell me what i should do to debug in the emulator? ... For kernel debugger in PB, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Justified moaning?, I like to think so.
    ... I might have guessed you were going to ask for the steps to reproduce ... caching the settings for the current project and then either: ... Erroneously combining the new config with what's cached in some way ... new projects default to either Debug or Release and are those default ...
    (borland.public.delphi.non-technical)
  • Re: Urgent urgent help..
    ... create symbol table info has NOTHING to do with DEBUG/NDEBUG settings. ... settings and enable debug information. ... If it does not reproduce, ... Release Version" on my MVP Tips site). ...
    (microsoft.public.vc.mfc)

Loading