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

debug: UI to examine core dumps #168

Closed
hyangah opened this issue Jun 3, 2020 · 3 comments
Closed

debug: UI to examine core dumps #168

hyangah opened this issue Jun 3, 2020 · 3 comments
Labels
Debug Issues related to the debugging functionality of the extension. FrozenDueToAge

Comments

@hyangah
Copy link
Contributor

hyangah commented Jun 3, 2020

From microsoft/vscode-go#3169

@lggomez has pending PR(#89) to implement this feature.
With example configuration:

{
            "name": "core:Launch",
            "debugServer": 4711,
            "type": "go",
            "request": "launch",
            "mode": "core",
            "program": "${workspaceRoot}/main/main.go",
            "env": {},
            "args": [],
            "dlvLoadConfig": {
                "followPointers": true,
                "maxVariableRecurse": 1,
                "maxStringLen": 5,
                "maxArrayValues": 5,
                "maxStructFields": -1
            },
            "backend": "coredump",
            "executable": "${workspaceRoot}/main/helloworldmodules",
            "coreDumpDirectory": "pathtodump...",
            "trace": "verbose"
        },
@stamblerre stamblerre added the Debug Issues related to the debugging functionality of the extension. label Jun 3, 2020
@hyangah hyangah added this to the Backlog milestone Aug 7, 2020
@marco-m-pix4d
Copy link

Hello @hyangah, I am an happy user of vscode-go. I would like to ask to reconsider the priority of this feature, I think it would be quite useful. Thanks for all the work of the vscode-go team :-)

@polinasok
Copy link
Contributor

polinasok commented Sep 8, 2021

This feature is now available using the following in your launch.json

"request": "launch",
"mode": "core",
"program":"path/to/executable",
"coreFilePath":"path/to/coredump",

Thank you @lggomez.

@marco-m-pix4d Please let us know if it is not working for you. Thank you.

@marco-m-pix4d
Copy link

marco-m-pix4d commented Sep 9, 2021

Hello @polinasok, @lggomez,
I confirm that this works fine, thanks a lot! :-)
Tested on Arch Linux, Go 1.17, latest vscode "August 2021" (vscode 1.60.0, vscode-go 0.27.2), delve 1.7.1.

@golang golang locked and limited conversation to collaborators Sep 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Debug Issues related to the debugging functionality of the extension. FrozenDueToAge
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants