showing used by another process when debugging in VS2015 CTP5
When I develop a new winform application, if I start debug a process and then stop it, it will no longer debug again, and it shows like the following below:
warning MSB3026: Could not copy “obj\x86\Debug\xxx.pdb” to “bin\Debug\xxx.pdb”. Beginning retry 1 in 1000ms. The process cannot access the file ‘bin\Debug\xxx.pdb’ because it is being used by another process.
And After looking into it, I found a process name “conhost.exe” is still exist after the debugger stops. So I closed it manually. And the debugger will work. But this is not a perfect workaround. So I found an other workaround, the issue may happened by VS 2015 new feature, it called Analyzer. When the Analyzer is disable, the issue no longer exist. Maybe this is the perfect workaround.
If the above solution does not work, please delete .vs folder and .suo file and then try again.
————————–
Update on 2/26/2015
The issue may fixed in CTP6, please have a try.
Veroslav Olic
2015年2月6日 - 17:57
Hi,
I suffer from the same error. How do I disable the Analyzer please?
kirito
2015年2月12日 - 09:06
Tools->Options->Debugging->Diagnostic Tools->Choose false.
Veroslav Olic
2015年2月20日 - 23:02
Hi,
Thank you.