debugging with visual studio using redirected standard input

This is a supported debugging scenario. You do have to make sure that the debugger can find the file. Leave the Command setting at $(TargetPath). A possible value for the Command Arguments setting is: < “$(ProjectDir)test.txt” if the input file “test.txt” is located in the project directory. Or type the full path of the file … Read more

Visual Studio 2015 diagnostics tool does not support current debugging configuration

So I resolved my issue. The Diagnostic Tools window currently does not support: Windows Store projects that are using JavaScript Windows Store projects that are running on a Windows Phone Debugging with Use Managed or Native Compatibility Mode In my case I had ‘Use Managed Compatibility Mode’ enabled. To change this go to the following … Read more

How do I debug .NET 4.6 framework source code in Visual Studio 2017?

Here is the answer, thanks to Hans Passant. Note that this solution raises additional questions. Ensure https://referencesource.microsoft.com/ contains the exact version you’re debugging. How? Reference source specifies “.NET Framework 4.6.2” but a module version is something like: “4.6.1586.0” You may need to uninstall security updates as explained here: How do you enable “Enable .NET Framework … Read more

ASP.NET MVC5/IIS Express unable to debug – Code Not Running

For me the solution was a much simpler one. In my Solution Explorer in Visual Studio, I right click on the web project, chose properties and then navigated to the “web” tab. From there I changed the Project URL to another port number. For example, if it was http://localhost:1052 – I changed it to http://localhost:4356. … Read more

Get “Internal error in the expression evaluator” on “Add watch” function when trying to debug WCF service code (MSVS 2013)

This might be a bug in the new (managed) debug engine that ships with Visual Studio 2013. Try turning on Managed Compatibility Mode (which effectively turns it into pre-2013 debug engine), located under Tools – Options – Debugging: If this solves the issue, then I’d suggest trying to reproduce it with a small project, and … Read more