question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to disable `just my code` debugging in vscode omnisharp ?

See original GitHub issue

Thanks for this nice debugging experience.

Environment data

dotnet --info output:

.NET Command Line Tools (2.0.3)

Product Information:
 Version:            2.0.3
 Commit SHA-1 hash:  eb1d5ee318

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  16.04
 OS Platform: Linux
 RID:         ubuntu.16.04-x64
 Base Path:   /usr/share/dotnet/sdk/2.0.3/

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.7
  Build    : 2d61d0b043915bc948ebf98836fefe9ba942be11

VS Code version: 1.22.1 C# Extension version: Not sure how to find it. Please add instructions in template.

Steps to reproduce

Debug any app and you will find : Skipped loading symbols. Module is optimized and the debugger option 'Just My Code is enabled`.

Expected behavior

I want to configure to load symbols for libraries as well.

Actual behavior

Not able to load symbols for : Skipped loading symbols. Module is optimized and the debugger option 'Just My Code is enabled`.

Use Case

We ship SDK to user for creating apps. To debug the code in libraries, we need to load symbols for our assemblies.

Also, please give instructions on how to use Debugger Console to load symbols and set multiple symbols paths for effective debugging.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
gregg-miskellycommented, Jun 6, 2018

@ashishnegi these settings are controlled through launch.json options. See https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md for documentation. The options you will likely want to configure: justMyCode, suppressJITOptimizations and symbolOptions.

1reaction
gregg-miskellycommented, Feb 9, 2022

@AlissonRS In launch.json, you want:

            "logging": {
                "moduleLoad": false
            },

If you are trying to figure out module/symbol load issues, be sure to turn it back on.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to disable "just my code" setting in VSCode debugger?
Then I found out: If you are in the "Run and Debug (SHIFT+CMD+D)"-tab and select your configuration there and click the green triangle...
Read more >
Enabling C# and .NET Core Debugging in VS Code from an ...
Getting up and running with editing and debugging C# code is usually as simply as installing the csharp extension from within VS Code....
Read more >
C# programming with Visual Studio Code
VS Code supports debugging of C# applications running on either .NET or Mono. For detailed instructions on: .NET debugging - see the Microsoft...
Read more >
PSA: If your VS Code C# extension stopped working...
If you opened VS Code today and your Unity Debugger wasn't working or it ... I just tried updating to the latest debugger,...
Read more >
omnisharp-vscode - Discover .NET
If you still need Unity or .NET Framework support, you can set omnisharp.useModernNet to false in your VS Code settings and restart OmniSharp....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found