-
Notifications
You must be signed in to change notification settings - Fork 645
Add stacktrace paging support to debug adapter #2080
Conversation
AFAICT the CI failures are not related to my changes. Perhaps someone can re-run them? |
@brycekahle Like you said, this just increases the depth from 20 to 50 How about adding a setting to the debug configuration so that the user can set the depth instead? |
@ramya-rao-a I've added a setting for the maximum stack trace depth. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @brycekahle
I have pushed a commit to change the default to 20 to keep it consistent with current behavior. I am not sure if increasing it to 50 will cause perf issues, therefore retaining it at 20
Also reverted the change made to goDebugConfiguration.ts
file. That change only works if the new stackTraceDepth
is part of both the launch.json config and the normal settings. Since we are adding it only to the former, the fallback won't work
@ramya-rao-a FYI changing this to 20 by default, will not allow any paging unless the setting is changed. VS Code uses a page size of 20, and by default we never indicate there are more than 20 frames (via Perhaps it is worth filing an issue on delve to have better support for stack frame paging? |
For delve, looks like something similar has already been discussed. See https://github.com/derekparker/delve/issues/989 due to which the default depth for delve is now 50
Good point. Given that delve itself has made the default to 50 and that this won't affect normal programs that don't usually go that deep, keeping the default as 50 should be ok |
Fixes #946
This still has a maximum depth of 50. Delve has no way to specify an infinite max depth, or query the length of the stacktrace.