The field ‘totalFrames’ which is total number of frames available, is mandatory in...
authorSerhiy Redko <serhiy.redko@oculus.com>
Sun, 8 Dec 2019 04:11:35 +0000 (20:11 -0800)
committerNathan Lanza <nathan@lanza.io>
Mon, 9 Dec 2019 18:43:50 +0000 (10:43 -0800)
commit6dad5e441db5400a9716fd3c6f943ceeeecdfe4e
tree1bb6c034b712ca90d2177ce11458e2d9cd0bc290
parentd0ccd55151f52992912dbc12d04a027cf5e06d2f
The field ‘totalFrames’ which is total number of frames available, is mandatory in StackTraces response for VSCode extension that implements DAP and declares capability 'supportsDelayedStackTraceLoading':

"The debug adapter supports the delayed loading of parts of the stack,
which requires that both the 'startFrame' and 'levels' arguments and the
'totalFrames' result of the 'StackTrace' request are supported."

Lack of this field makes VSCode incorrectly display stack traces information

D71034
lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/lldbvscode_testcase.py
lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/stackTrace/TestVSCode_stackTrace.py
lldb/tools/lldb-vscode/lldb-vscode.cpp