简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM