314 questions
471 votes
22 answers
116k views
Can I find out the return value before returning while debugging in Visual Studio?
Take the following function: DataTable go() { return someTableAdapter.getSomeData(); } When I set a breakpoint in this function, is there a possibility to inspect the returned value? go() is ...
203 votes
27 answers
209k views
SSL Connection / Connection Reset with IISExpress
I'm using the new Visual Studio 2013 with IISExpress for the first time (previously used ASP.net Development server on VS2010). I'm running into issues trying to debug my project. This is what I see ...
92 votes
31 answers
203k views
Unable to start debugging on the web server. Could not start ASP.NET debugging VS 2010, II7, Win 7 x64
I am running Visual Studio 2010 (as Admin), IIS 7 on Windows 7 x64. I am able to run the ASP.NET web site in IIS 7 without debugging just fine, but when I press F5 to debug it, I get: Unable to ...
91 votes
10 answers
106k views
Connecting to Visual Studio debugging IIS Express server over the lan
I have a test ASP.NET MVC3 application developed in VS2012. When I start debugging the app is accessed from the host machine via the request to http://localhost:<portnumber>. But if I try to ...
43 votes
4 answers
27k views
Visual Studio 2017 Debug Error: To prevent an unsafe abort when evaluating the function *.toString all threads were allowed to run
I updated Visual Studio 2017 to version 15.8.2. After this update, I started to encounter these errors while debugging: Here are the error messages: Visual Studio Debug Error: To prevent an unsafe ...
34 votes
5 answers
39k views
No Source available
I am not sure what happened or if I did anything.. Now anytime I try and debug it says no source available on all BCL stuff For example, on a debug.print I get that message with Locating source for ...
33 votes
4 answers
11k views
How to prevent Visual Studio from launching WcfSvcHost.exe while debugging?
I have a solution in Visual Studio 2008 which has multiple projects. One of the projects is a WCF project. Sometimes I just want to debug other projects, but when I press F5, Visual Studio has ...
149 votes
8 answers
180k views
Visual Studio during Debugging: The function evaluation requires all threads to run
I'm suddenly getting a strange error while debugging. Up to now the variable in the watch windows has been showing correctly. Now I am always getting this error message in the watch windows: The ...
114 votes
4 answers
36k views
Get "Internal error in the expression evaluator" on "Add watch" function when trying to debug WCF service code (MSVS 2013)
Few days ago I moved my solution to MSVS 2013. It works fine except one thing: when I trying to debug code of my WCF service it works, but when I want to watch state of any variable it says: "...
40 votes
17 answers
112k views
ASP.NET MVC5/IIS Express unable to debug - Code Not Running
I start a VS2013 VB.Net MVC5 Web Application, set a breakpoint in HomeController About method and run "Start Debugging", navigate to About page and receive the message "Code not running - The current ...
63 votes
25 answers
91k views
Visual Studio 2015 RTM - Debugging not working
I have installed VS 2015 RTM (nothing else) and I'm unable to debug any solution, not matter if it's an existing one or a brand new one (created with VS 2015 and compiled against .Net Framework 4.6), ...
43 votes
5 answers
72k views
How to debug class library that called from external app?
There is an external workflow that executes C# scripts and is able to work with DLL files(my class library). Is it possible to attach debug to my class library project so breakpoint will hit once ...
22 votes
3 answers
17k views
Stop Visual Studio from breaking on exception in Tasks
I have the following code: Task load = Task.Factory.StartNew(() => {//Some Stuff Which Throws an Exception}); try { load.Wait(); } catch (AggregateException ex) { MessageBox.Show("...
22 votes
2 answers
12k views
How do I debug .NET 4.6 framework source code in Visual Studio 2017?
Here's what I've tried: Made a new Console App (.NET Framework) in Visual Studio 2017. Added the following code: static void Main(string[] args) { new Dictionary<int, int>().TryGetValue(3,...
105 votes
33 answers
252k views
Visual Studio breakpoints not being hit
I'm working with an ASP.NET MVC project that seems to be having some issues when attaching to the IIS process (w3wp.exe). I'm running the solution and IIS 8.5 on my own local machine so I wouldn't ...