Skip to content

[debug] Is StackTraceResponse.totalFrames truly necessary? #31851

Closed
@vadimcn

Description

@vadimcn

The description of supportsDelayedStackTraceLoading debug adapter capability stipulates that in order for delayed stack loading to work, the adapter must populate the totalFrames field of StackTraceResponse.

However, for native debuggers, this value is not so easy to compute. For example, when FPO (frame pointer omission) optimization is in play, the debugger may need to load debug info for all modules currently on stack, even those at the very bottom which the user probably didn't care about.

Since the total number of frames is never surfaced in the UI, I am wondering whether totalFrames is truly necessary. Wouldn't VSCode know that it has reached bottom of the stack when it receives back less frames than the levels it requested?

Metadata

Metadata

Assignees

Labels

debtCode quality issuesdebugDebug viewlet, configurations, breakpoints, adapter issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions