you can running the process first and them use VS debugger to attach to it.
or
put DebugBreak() in your code.
--------------------
[quoted text, click to view] >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
[quoted text, click to view] >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?
>