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

Source Server support is missing #12777

Open
JVApen opened this issue Sep 27, 2024 · 0 comments
Open

Source Server support is missing #12777

JVApen opened this issue Sep 27, 2024 · 0 comments

Comments

@JVApen
Copy link

JVApen commented Sep 27, 2024

Environment

  • OS and version: Windows
  • VS Code: 1.93
  • C/C++ extension: 1.21.6
  • OS and version of remote machine (if applicable): N/A
  • GDB / LLDB version: N/A

Bug Summary and Steps to Reproduce

Bug Summary:
It is possible to put source-server information in the pdb files. (See https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/the-srcsrv-ini-file)
With this, you can add a link to a git/svn/... server and explain how to get the source code from it.
If you debug in visual studio, it extracts this information from the PDB and asks if you trust the command to download the sources. If you do, you will see the sources as they were stored in the git/svn/... server for that specific revision.

Steps to reproduce:

  1. Create a binary with pdbs and source server info
  2. Run the binary
  3. Make dump file from it (taskmanager)
  4. Open the dump file in VS Code
  5. See that the sources are not loaded.

Debugger Configurations

`
`
        {
            "name": "Open Dump File (Windows)",
            "type": "cppvsdbg",
            "request": "launch",
            "dumpPath": "C:/Temp/process.DMP",
            "program": "unused field in case of opening dumps, that is required in the json",
            "args": [],
            "cwd": "${workspaceFolder}",
            "environment": [],
            "requireExactSource": false,
            "symbolOptions": {
                "searchPaths": [
                    "file://servername/directory"
                ],
                "searchMicrosoftSymbolServer": true,
                "cachePath": "E:/Cache",
            },
            "console": "internalConsole",
            "logging": {
                "exceptions": true,
                "programOutput": true,
                "moduleLoad": true,
                "engineLogging": true,
                "trace": true,
                "traceResponse": true
            }
        },


### Debugger Logs

```shell
N/A

Other Extensions

No response

Additional Information

No response

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

No branches or pull requests

1 participant