Mahler Apr 26, 2014 @ 2:00am
How to catch a log from a game launched by steam
Hi, I'd like to catch a log file from a game launched by steam.exe by the -applaunch option. I'm working in linux with wine. For some reason I can't launch the game directly because it crashes. So I must use steam.exe. However this seems to launch the game as a separate process and the logging seems to be lost.

In addition, I'd also like to set the environment variables which that application will see. this way I can turn on wine debugging and what not.
< >
Showing 1-4 of 4 comments
402 Storm Apr 26, 2014 @ 2:06am 
sdaaa
Mahler Apr 26, 2014 @ 3:52am 
That's very helpful.
Mahler May 2, 2014 @ 1:03am 
For anybody who finds this thread, I found an acceptable answer for my purpose.

You need to use the winedbg program. The procedure is the following.

Start the game you're interested in. Once the game starts,

open a terminal and start winedbg.

List the running processes with 'info process'

Then attache the wpid of the program you're interested in with 'attach <wpid>'

Then if you're looking at a crash, you can issue 'set $BreakOnFirstChance = 1' so that it stops and prints a stack trace when it crashes.

then use 'cont' to continue execution of the program until the crash occurs.

I hope this helps people.
76561198111459097 Jun 1, 2014 @ 12:37am 
дота
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Apr 26, 2014 @ 2:00am
Posts: 4