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

Enable source debugging #363

Closed
jasongin opened this issue Aug 23, 2024 · 2 comments
Closed

Enable source debugging #363

jasongin opened this issue Aug 23, 2024 · 2 comments
Assignees
Labels
Milestone

Comments

@jasongin
Copy link
Member

Set up Source Link to enable source debugging of published NuGet packages.

@jasongin
Copy link
Member Author

jasongin commented Sep 3, 2024

The doc says source link should work automatically for code built in GitHub public repos with symbol nuget packages published. I'll try to verify that.

@jasongin
Copy link
Member Author

I confirmed source debugging is working now. In Visual Studio, it requires the following options:

  • Debugging -> Symbols -> Enable NuGet.org Symbol Server (check)
  • Debugging -> General -> Enable Just My Code (uncheck)
  • Debugging -> General -> Enable Source Link Support (check)

With those settings, symbols are downloaded from NuGet.org and cached at %TEMP%\SymbolCache, and source code is downloaded from GitHub and cached at %LOCALAPPDATA%\SourceServer, and the VS debugger can step into the code or show the code where an exception is thrown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

1 participant