Omnisharp-vscode: Question: When debugging how can I step into an external referenced class library?

Created on 9 May 2017  路  7Comments  路  Source: OmniSharp/omnisharp-vscode

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!

Debugger Question

Most helpful comment

I can. Glad it worked!

All 7 comments

@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.

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!

Hello again @gregg-miskelly !

I saw your PR https://github.com/OmniSharp/omnisharp-vscode/pull/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!

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

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

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

I can. Glad it worked!

Was this page helpful?
0 / 5 - 0 ratings