On steam, you can select the game, right click on it, select proprieties‎ , launch options and put apitrace %command% you can run the game with gdb, strace , etc using this option. it will output to the console, so start steam in a terminal if you need to see the output