Re: Debugging multiple apps

"brian sharon" <[email protected]> Fri, 18 Aug 2006 08:40:48 -0700
Newsgroups gmane.games.devel.windows
Message-ID <[email protected]>
--===============1019188111==
Content-Type: multipart/alternative; 
	boundary="----=_Part_11461_2820024.1155915648050"

------=_Part_11461_2820024.1155915648050
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

You can use gflags.exe (google it) to specify that the second application
should always be launched with a debugger attached.  This would be a
separate instance of Visual Studio, however.

--brian

On 8/18/06, Research <[email protected]> wrote:
>
> I cannot figure out how to debug multiple apps in Visual Studio, and I
> can't
> seem to find the right google words to find this either.
>
> I'm have one application that launches another with ShellExecute. They are
> both in the same solution. I put breakpoints on the WinMain of the
> launched
> app and it never gets called.
>
> I know how to attach to something already running, but I need to trap the
> app on entry. So I want to step on the ShellExecute and have the other app
> start and immediately break.
>
> Is this possible in Visual Studio?
>
> Thanks,
> Brett
>

------=_Part_11461_2820024.1155915648050
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

You can use gflags.exe (google it) to specify that the second application should always be launched with a debugger attached.&nbsp; This would be a separate instance of Visual Studio, however.<br><br>--brian<br><br><div><span class="gmail_quote">
On 8/18/06, <b class="gmail_sendername">Research</b> &lt;<a href="mailto:[email protected]">[email protected]</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I cannot figure out how to debug multiple apps in Visual Studio, and I can't<br>seem to find the right google words to find this either.<br><br>I'm have one application that launches another with ShellExecute. They are<br>
both in the same solution. I put breakpoints on the WinMain of the launched<br>app and it never gets called.<br><br>I know how to attach to something already running, but I need to trap the<br>app on entry. So I want to step on the ShellExecute and have the other app
<br>start and immediately break.<br><br>Is this possible in Visual Studio?<br><br>Thanks,<br>Brett<br></blockquote></div><br>

------=_Part_11461_2820024.1155915648050--


--===============1019188111==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
--===============1019188111==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555
--===============1019188111==--