http://bugs.winehq.org/show_bug.cgi?id=16156
--- Comment #3 from Kai Blin kai.blin@gmail.com 2008-11-23 07:26:02 --- In a console window, run WINEDEBUG=+winsock wine app.exe &> trace.txt
where app.exe is the application you want to run, assuming you cd'ed into the correct folder.