Redigera

Dela via


.kframes (Set Stack Length)

The .kframes command sets the default length of a stack trace display.

.kframes FrameCountDefault 

Parameters

FrameCountDefault

Specifies the number of stack frames to display when a stack trace command is used.

Environment

Environment  
Modes User mode, kernel mode
Targets Live, crash dump
Platforms All

Remarks

You can use the .kframes command to set the default length of a stack trace display. This length controls the number of frames that the k, kb, kp, kP, and kv commands display and the number of DWORD_PTRs that the kd command displays.

You can override this default length by using the FrameCount or WordCount parameters for these commands.

Use the .kframes command, without any parameters to see current value.

.kframes
Default stack trace depth is 0n256 frames

Use the following command to set the stack trace depth to 0x2.

.kframes 0x2
Default stack trace depth is 0n2 frames

Use the following commands to display two stack and two raw stack values.

k
 # Child-SP          RetAddr               Call Site
00 00000054`b71ffb78 00007ffe`1ee672ae     ntdll!DbgBreakPoint
01 00000054`b71ffb80 00007ffe`1e2a3e2d     ntdll!DbgUiRemoteBreakin+0x4e

kd
00000054`b71ffb70  00000000
00000054`b71ffb74  00000000

Specify the FrameCount and WordCount to display additional values.

k 3
 # Child-SP          RetAddr               Call Site
00 00000054`b71ffb78 00007ffe`1ee672ae     ntdll!DbgBreakPoint
01 00000054`b71ffb80 00007ffe`1e2a3e2d     ntdll!DbgUiRemoteBreakin+0x4e
02 00000054`b71ffbb0 00007ffe`1eddef48     KERNEL32!BaseThreadInitThunk+0x1d

kd 5
00000054`b71ffb70  00000000
00000054`b71ffb74  00000000
00000054`b71ffb78  1ee672ae
00000054`b71ffb7c  00007ffe
00000054`b71ffb80  00000000

See also

k, kb, kc, kd, kp, kP, kv (Display Stack Backtrace)