Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

service/dap: strip package paths from symbols in callstack #3500

Merged

Conversation

stefanhaller
Copy link
Contributor

This solves the problem that function names with long package paths are hard to read when the callstack window is narrow, because all you see is the beginning of the package path.

For example, instead of

  github.com/some/long/package/path/pkg.(*SomeType).SomeMethod

we now display

  pkg.(*SomeType).SomeMethod

Fixes #3323.

This solves the problem that function names with long package paths are hard to
read when the callstack window is narrow, because all you see is the beginning
of the package path.

For example, instead of

  github.com/some/long/package/path/pkg.(*SomeType).SomeMethod

we now display

  pkg.(*SomeType).SomeMethod
Copy link
Contributor

@hyangah hyangah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!!

@aarzilli aarzilli merged commit c7097b8 into go-delve:master Sep 16, 2023
1 of 2 checks passed
@stefanhaller stefanhaller deleted the hide-package-paths-in-call-stack-2 branch September 16, 2023 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VSCode: Function Names not Visible in the Call Stack View
3 participants