While searching for a debug tool equivalent of strace that runs on Windows, I’ve come across Process Monitor. This appears to work well for me. For anyone in search of strace equivalent on Windows, give this one a try.
I’ve also tried StraceNT, but this one was not very reliable as it tends to crash the traced process almost every time.
An equally useful tool for debugging on Windows is DebugView, which captures output from the OutputDebugString calls.
How do you use strace in this tool? Thanks.
Hi Goran,
Just launch the procmon.exe which is all you have to do.
Then, you need to filter the output by the process name. Go to Filter -> Filter, and choose to filter the output by process name (e.g. ‘soffice.bin’ for the OOo process).
Process Monitor shows *all* activities of *all* processes, so it’s equivalent of running strace on all processes at the same time.
[…] This post was mentioned on Twitter by openSUSE News and suselady, suselady. suselady said: RT @opensuse: Planet #openSUSE: Kohei Yoshida: Strace equivalent for Windows http://bit.ly/cP8JSI […]
Kohei,
for people wanting to understand what happens at the very launch of OOo using that, you can do that:
set PM=C:\sysint\procmon.exe
start %PM% /quiet /minimized /backingfile C:\temp\soffice.pml
%PM% /waitforidle
soffice.exe
%PM% /terminate
I found that in some document but I don’t remember where.