Rider makes it easy to debug the 3rd party code. But sometimes it is just too much noise when debugging my own code.
VS has the option "Just My Code" which lets us debug only our code. Does Rider has the same?
Use JetBrains Rider as the default JIT debuggerPress Ctrl+Alt+S or alternatively select File | Settings from the main menu, then choose Build, Execution, Deployment | Debugger on the left. Click Set rider as default debugger. When JetBrains Rider is set as the default JIT debugger and a process calls Debugger.
Just My Code is a Visual Studio debugging feature that automatically steps over calls to system, framework, and other non-user code. In the Call Stack window, Just My Code collapses these calls into [External Code] frames. Just My Code works differently in . NET, C++, and JavaScript projects.
You can't debug if you don't have PDBs but... JetBrains' dotPeek can act as a Symbol Server for your assemblies. You can setup it to provide the PDBs for the code that you don't have the PDBs. It will create files on the way.
We can enable this option from Rider’s settings ( Ctrl+Alt+S ), under Build, Execution, Deployment | Debugger. When in debug mode, it may happen that we accidentally click a breakpoint. When intended, that’s fine.
Does Rider has the "Just My Code" debugging option? Rider makes it easy to debug the 3rd party code. But sometimes it is just too much noise when debugging my own code. VS has the option "Just My Code" which lets us debug only our code. Does Rider has the same? Here is how it should work.
JetBrains Rider makes debugging external-library code simple, thanks to its integrated decompiler which decompiles external code on the fly and injects it into the debugger. External-source debugging is enabled by default. If you want the debugger to ignore library code, you can disable it.
Debugging third-party code is possible in full .NET Framework and .NET Core. Mono support is being worked on. This means we can pull of the same trick on Linux or Mac OS X with .NET Core! In Rider, we can Ctrl+click into a class or method (or use Navigate To – Alt+` or any of our other navigation features ).
Yes, there is an option as documented here
To disable external-code debugging Clear Enable external source debug on the Build, Execution, Deployment | Debugger page > of JetBrains Rider settings Ctrl+Alt+S. If this option is disabled, you can still navigate to the external code and set breakpoints there. However, breakpoints in external code will be ignored by the debugger and you will not be able to step into the external code. So your debugging experience will be limited by the source code in your solution.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With