January 2019
Intermediate to advanced
384 pages
11h 50m
English
I call that technique the poor man's sampling technique. It is really simple. In its most basic form, you run a program in a debugger, stop it several times, and examine the call stack of the randomly chosen breaks. The idea is (as with sampling profilers) that the most-used function will show most often in the stack trace. Simple as it is, this quick technique will sometimes will give us enough information to diagnose the problem.
Unexpectedly, this can be done most elegantly with the Process Explorer. We just need to get to the Threads tab, double-click on a selected row, and the stack trace of this thread will be shown, as in the following screenshot:
Besides that, the Threads tab gives us an ...
Read now
Unlock full access