WinDBG script so that every time it breaks, start a callstack and then go over (raw ex or debugee saying debug.break ())

We run the application, this is the web server that we wrote, and we talk about some unpleasant problems only in production, so for about 12 hours we are going to put this under WinDBG and take calls every time it breaks.

Sometimes it is interrupted due to an unhandled exception, and sometimes we hit assert, and at this point our code says if it works under the debugger, break it.

Is it possible to connect to WinDBG in such a way that, as soon as it breaks down, it takes a stop call and immediately transfers?

+3
source share
2 answers

, () ()

, , , , .

sxd *

, ( callstack )

sxe -c "kb;g" bpe
sxe -c "kb;g" asrt
sxe -c "kb;g" eh

- , assert ++ EH.

, , , SOS.dll( CLR WinDBG),

sxe -c "kb;g" clr

/, , . WinDbg ( sxe)

+3

sxe -c "kb;g" -h wkd

sxe -c "kb;g" -h eh

windbg .

0

Source: https://habr.com/ru/post/1726764/


All Articles