Re: Debugging multiple apps

Alen Ladavac <[email protected]> Sat, 19 Aug 2006 07:13:35 +0200
Newsgroups gmane.games.devel.windows
Organization Croteam
Message-ID <[email protected]>
Hi Brett,


Using "_asm int 3 ;" is even easier. It will ask you to do JIT
debugging (if this is configured properly), so no need to manually go
and attach to the process. And you can reuse the same devstudio
instance. Didn't use this often, but the little I did, it worked ok.

HTH,
Alen

Brett wrote:

> I'm glad to hear this is a valid technique! I resorted to a MessageBox as
> the first line so I can attach the process before continuing.

> But surely there's a way to do this properly? The doc goes on and on about
> how great solution files are because each project and the dependencies are
> known and so multi-language, multi-project debugging "is a breeze"....

> I want to feel the wind in my hair!

> Brett

> ----- Original Message ----- 
> From: "Chris Jones" <[email protected]>
> To: "Game Development for MS Windows" 
> <[email protected]>
> Sent: Saturday, August 19, 2006 3:31 AM
> Subject: Re: [GD-Windows] Debugging multiple apps


>> 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 


> -------------------------------------------------------------------------
> 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



-- 
Alen


-------------------------------------------------------------------------
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