-
Notifications
You must be signed in to change notification settings - Fork 645
Call Stack limitied to 20 #946
Comments
Does it work when you run dlv from the command line? |
Yeah, I can print the stack trace at arbitrary depth using the command line with |
cc @roblourens |
Looks like we haven't implemented stack trace paging (but probably we should just hardcode a number larger than 20) |
@roblourens Can you add some pointers on how we go about doing that so that someone in the community can pick this up? |
VS Code asks for 20 frames at first, and we pass that along to Delve to get 20 frames https://github.com/Microsoft/vscode-go/blob/master/src/debugAdapter/goDebug.ts#L574 Then VS Code can ask for the next page of frames 20-40, but it looks like there probably isn't a way to ask for that from Delve. So, someone could change that line to ignore args.levels from VS Code, and simply return 50 frames (or something). However, someone would need to test it and make sure that it doesn't crash or slow down when exchanging info from 50 frames. Another option would be getting lots of frames from Delve, and implementing paging just between VS Code and the debug adapter. |
* Add stacktrace paging support to debug adapter Fixes #946 * Add configuration setting for maximum stack trace depth * Use current default of 20 * Fallback to settings wont work
The call stack trace can now be paged in the latest version of the Go extension (0.8.0) |
If you run this code
with a breakpoint on line 10, you can't access the value of d in the main function because it's too far down the stack. How can this be extended?
The text was updated successfully, but these errors were encountered: