-
Notifications
You must be signed in to change notification settings - Fork 676
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 into nuget package libraries #5584
Comments
Is your goal actually just debugging? Or do you want to be able to modify the code you are debugging? If you just want to debug, you don't need to do all this if the project you are trying to debug is properly setup -- publishes PDBs and enables Source Link. |
Hi @gregg-miskelly , I just want to debug, but I cannot, by default, debug into any of the functions that I am trying to step into, and it isn't obvious if any configuration exists to enable it or why it isn't enabled by default. This is the library I am looking at, but you can probably get the same behavior from any of the Azure SDK projects: |
I updated https://github.com/dotnet/vscode-csharp/wiki/Debugging-into-the-.NET-Runtime-itself with better instructions. If you are familiar with external code debugging in full Visual Studio, here are the differences with the C# extension --
It doesn't appear we have an issue tracking 3 or 4. So if these are important features to you, please open an issue to help prioritize them in the future. |
Is your feature request related to a problem? Please describe.
I would like it if users did not have to clone a project in order to debug into the relevant C# code, but instead can debug into code from .NET Nuget package libraries. All other SDKs allow you to debug into library code without significant extra configuration but .NET.
In order to debug into PackageReference code, you need to clone the project locally, then provide a ProjectReference such as the below:
Normally, the above would be imported as in the below, but it seems you can't debug into PackageReference.
Maybe there is a configuration for this somewhere, but it's almost impossible to search for it online because anytime you search for "Visual Studio Code" and ".NET", you get a bunch of Visual Studio 2019/2022 results. I could use Visual Studio 2022, but I work with multiple languages frequently in disposable VMs and prefer to keep things light weight.
If the configuration does exist somewhere, it should really be the default behavior to debug into nuget package libraries, and opt-out choice to not make that the behavior as every other language by default allows you to debug into a function code that was imported.
Describe the solution you would like
When I debug a function that goes into a PackageReference in a .csproj file, I would prefer it if I can debug into the actual code. This should be one of the default, basic functionalities of any IDE.
Applicable Scenarios
This scenario applies to debugging.
Describe alternatives you've considered
Alternative is to clone external projects everytime and link it in .csproj using ProjectReference.
The text was updated successfully, but these errors were encountered: