RE: unable to start debugging when program started with another exe.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: arthur Wang [MSFT] (arthurwa_at_online.microsoft.com)
Date: 11/26/04


Date: Fri, 26 Nov 2004 04:22:03 GMT

you can running the process first and them use VS debugger to attach to it.
or
put DebugBreak() in your code.
--------------------
>Thread-Topic: unable to start debugging when program started with another
exe.
>thread-index: AcTS9YW/Ry6ozVjWTwaKIe7xw3M3eA==
>X-WBNR-Posting-Host: 206.47.217.67
>From: =?Utf-8?B?THVj?= <Luc@discussions.microsoft.com>
>Subject: unable to start debugging when program started with another exe.
>Date: Thu, 25 Nov 2004 05:49:02 -0800
>Lines: 12
>Message-ID: <B8F970E2-8DD1-4B65-9A6E-23EED605937A@microsoft.com>
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="Utf-8"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>Content-Class: urn:content-classes:message
>Importance: normal
>Priority: normal
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>Newsgroups: microsoft.public.vsnet.debugging
>NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
>Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGXA0
3.phx.gbl
>Xref: cpmsftngxa10.phx.gbl microsoft.public.vsnet.debugging:6709
>X-Tomcat-NG: microsoft.public.vsnet.debugging
>
>Hi all,
>
>I have to debug an exe with the VS studio .NET environment. but first my
>exe has to be started using another exe. So I arranged my project
properties
>to start this first exe. Doing so, my breakpoints are not working.
>
>It seems that the debugger cannot attach itself to my program since it is
>started by another exe. I tried using a batch file calling my program but
>it's not working. I received an error massge stating I cannot start a
>program using a batch file from within the vs.net ide.
>
>Have any ideas?
>



Relevant Pages

  • Re: How to attach an exe to the debugger?
    ... suggested running the exe and attaching it to the debugger, ... Run your .EXE. ... If your exception occurs before you can attach the debugger, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How to attach an exe to the debugger?
    ... suggested running the exe and attaching it to the debugger, ... Run your .EXE. ... If your exception occurs before you can attach the debugger, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: query on pocket pc emulator and device
    ... I have used debugger it is not generating any error at any ... in to my emulator device at location"My Device" at this place my exe is also ... >> i am developing my application on pocket pc devicce but i was using emulator ... If the symptom does show with a debug ...
    (microsoft.public.pocketpc.developer)
  • Re: Attach to exe in VS2005
    ... I don't exactly undestood your question, but if you want the debugger ... B> I want to attach to an exe that is invoked from a command line. ...
    (microsoft.public.dotnet.general)
  • Symbols not loaded when attaching to a remote process
    ... When I attach to a process remotely the symbols are not loaded correctly. ... If I use the debugger to run the process remotely everything works fine. ... chinesse characters for the modules except the .exe. ...
    (microsoft.public.vc.debugger)