Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Howto debug Winsock API calls?

I have a very large C++ server application on Windows (Win7). It compiles fine and runs mostly well, but sometimes IP connections fail.

My suspicion is that some calls to the Winsock API get bad parameters and not all result codes are checked properly.

Is there a way to trace all calls to the Winsock API including parameters, so I can can check them for the failing connection ? Something similar to strace on Linux maybe ?

like image 320
Gene Vincent Avatar asked Nov 14 '11 08:11

Gene Vincent


1 Answers

Since you're running Windows 7, you can use the Winsock Tracing facility available since Vista.

like image 171
Frédéric Hamidi Avatar answered Oct 01 '22 17:10

Frédéric Hamidi