Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Cant Find File - Debugging

During debugging in Visual Studio 2015 it cant find files:

xxxx.cs not found
You need to find xxx.cs to view the source for the current call stack frame

Try one of the following options:
- Browse and find xxx.cs

You can view disassembly in the Dissasembly window. To alsways view dissassembly for the missing source files, change the setting in the Options dialog

The .cs file in question is from a third party dll, so I do not expect to be able to step through it. It seems to be acting as though I am not in debug, but I am, and I have in the web.config. I have tried a million settings in VS, but nothing seems to help. For example:

Enable Just My Code is unchecked Adding the files to the 'Do not look for these source files' list makes it stop asking where file is, but I still get the 'xxx.cs not found' tab

like image 471
Ethan Schofer Avatar asked Sep 22 '16 19:09

Ethan Schofer


People also ask

Why can't Visual Studio start debugging?

visual studio cannot start debugging because the debug target visual studio cannot start debugging because the debug target Please help me to understand why this problem occurs and what is the solution sql-server-general Comment Comment · Show 1 Comment 5 |1600characters neededcharacters leftcharacters exceeded

How do I run a remote debugger in Visual Studio 2015?

If you want to configure the remote debugger as a service, follow these steps. Find the Remote Debugger Configuration Wizard (rdbgwiz.exe). Start running the configuration wizard. Check the Run the Visual Studio 2015 Remote Debugger as a service checkbox. Add the name of the user account and password.

How do I view disassembly files in Visual Studio 2015?

Active4 years, 9 months ago Viewed3k times 6 2 During debugging in Visual Studio 2015 it cant find files: xxxx.cs not found You need to find xxx.cs to view the source for the current call stack frame Try one of the following options: - Browse and find xxx.cs You can view disassembly in the Dissasembly window.

Why won't my project run in Visual Studio?

I know this is an old thread, but for any future visitors, the cause of this error is most likely because you haven't built your project from Build > Build Solution. The reason you're getting this error when you try to run your project is because Visual Studio can't find the executable file that should be produced when you build your project.


1 Answers

This may be a very stupid answer, and you have probably already found a better one.

If you're trying to prevent Visual Studio from stepping through non-user code, you have to delete the .pdb for the dll and enable Just My Code in your options.

like image 102
BordListian Avatar answered Sep 20 '22 07:09

BordListian