Visual studio: how to ignore pdb not loaded warnings during debugging?

During debugging, I do not want the visual studio to look for * .pdb files from third-party *. Dll. For example, I use Jetbrains Resharper TaskRunner for unit testing. To use it, you need a link to Jetbrains.Resharper.TaskRunnerFramework.dll. When I debug my application through TaskRunner, I get something similar to this image below:

enter image description here

Well, I am not debugging a task. This is not my code. I want Visual Studio to be smart enough (or to have a setting) to automatically know what does NOT apply to * .pdb files for anything that is not my code. Is it possible?

+5
source share
2 answers

Check out Just My Code in Visual Studio. From the documentation, there is a section that sounds appropriate, which discusses one of the consequences of applying this parameter:

When you execute the non-user code (Keyboard Shortcut: F11), the debugger moves on to the next statement. When you exit (keyboard: Shift + F11), the debugger moves to the next line of user code. If the user code does not occur, execution continues until the application exits, the breakpoint is deleted, or an exception is thrown.

You can enable Just My Code in Visual Studio options under Debugging> General:

enter image description here

+3
source

Add the .gitignore file to your solution and add all the extensions you want to ignore. Add this to your .gitignore * .pdb file

-1
source

Source: https://habr.com/ru/post/1273444/


All Articles