Re: Debugging multiple apps

"Chris Jones" <[email protected]> Fri, 18 Aug 2006 12:31:06 -0700
Newsgroups gmane.games.devel.windows
Message-ID <BC6FEE8F9A3A624F95B342A5B6C5C8330172411E@marathon.obsidianent.com>
One way I've dealt with stuff like this in the past is to put a simple
loop like this as the first thing in your WinMain:

    bool wait = true;
    while (wait);

Once the process is launched, just attach to it with the debugger and
break.  Set wait to false and start stepping.

Chris

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] 
> On Behalf Of Research
> Sent: Friday, August 18, 2006 12:28 AM
> To: [email protected]
> Subject: [GD-Windows] Debugging multiple apps
> 
> 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 
> 
> 
> --------------------------------------------------------------
> -----------
> 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
> _______________________________________________
> Gamedevlists-windows mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
> Archives:
> http://sourceforge.net/mailarchive/forum.php?forum_id=555
> 

-------------------------------------------------------------------------
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
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555