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

Question: When debugging how can I step into an external referenced class library? #1467

Closed
bernardbr opened this issue May 9, 2017 · 9 comments

Comments

@bernardbr
Copy link

bernardbr commented May 9, 2017

Hi!
I'm using an external class lib referenced via Nuget. The NuGet have a pdb file and I want to debug it. This NuGet package is mine too, and I have the source code.

How can I step into this external referenced class library when debugging?

Thanks!

@bernardbr bernardbr changed the title How can I step into an external referenced class library? Question: How can I step into an external referenced class library? May 9, 2017
@bernardbr bernardbr changed the title Question: How can I step into an external referenced class library? Question: When debugging how can I step into an external referenced class library? May 9, 2017
@gregg-miskelly
Copy link
Contributor

@bernardbr I am assuming the dll in the nuget package is release-compiled (optimized) correct? If so, what you want to do is set 'justMyCode` in your launch.json file to false. There are some more instructions for this in our documentation.

Someday you will also be able to use SourceLink, but we don't support this yet for VS Code.

@bernardbr
Copy link
Author

Hello @gregg-miskelly !
Thank you for your answer. Is the same solution for debugging unit tests? I tried in a console app and worked fine, but when I try during unit test debug it doesn't work...

Thanks!

@bernardbr
Copy link
Author

bernardbr commented May 10, 2017

Hello again @gregg-miskelly !

I saw your PR #1446 about this.
I'm using the 1.10.0-beta2 version. Is this functionality in this version?
If yes need I just add:

  "unitTestDebugingOptions": {
    "justMyCode": false
  }

on launch.json?

Thanks!

@gregg-miskelly
Copy link
Contributor

@bernardbr Correct. To be clear, in the "csharp" section.

@gregg-miskelly
Copy link
Contributor

Oh, and to be clear, you add these under 'Preferences->Settings'.

@bernardbr
Copy link
Author

Thanks a lot @gregg-miskelly !
It Works perfectly!
Do you want me to close this issue?

@gregg-miskelly
Copy link
Contributor

I can. Glad it worked!

@gregg-miskelly
Copy link
Contributor

@etmyhome Soure Link to servers that don't require authentication is supported. Source Link to servers that require authentication is tracked with #2071

@etmyhome
Copy link

etmyhome commented Dec 1, 2023

any update? i using github packages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants