visual-studio-debugging

unable to connect to the configured development web server [closed]

谁说我不能喝 提交于 2019-12-19 10:08:28
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 8 years ago . When I run my web application from Visual Studio I get the following message: Unable to connect to the configured development web server It then refuses to run. How do I resove this issue? 回答1: Please follow

Why Visual Studio's debug mode Step Into (F11) sometimes doesn't enter inside some functions?

南楼画角 提交于 2019-12-19 05:34:21
问题 I was debugging a given C++ code with the F11 key (Step Into mode) in order to understand the precise order in which the functions in the code were called and I realized that it would never enter inside some functions unless I set a breakpoint at some line inside the function definition. I mean, if I call a function from the main method, and the function is defined in another .cpp I expect the F11 debugging mode to enter step by step inside the function in order to analize the variable

VS2010 and VS2012 “Script Documents” section never appears, and I can't debug JavaScript

梦想的初衷 提交于 2019-12-19 03:38:13
问题 Tools: Windows 7, Visual Studio 2010 and 2012, IE 9, ASP.NET 4.0, MVC4 Until a couple of days ago I had been able to debug by using the Script Documents section in the Solution Explorer. Now, the Scripts Documents section does not appear when Start Debugging (F5). I do have IE set as the default browser. Using "debugger;" has no effect. Configuration is set to "Active (Debug)." Silverlight debugging is off. I have 'repaired' the Visual Studio 2010 inatallation. I have no idea how to correct

Freeze all threads on breakpoint in VS2010

那年仲夏 提交于 2019-12-18 20:18:11
问题 I'm using VS2010 Beta 2 to debug some multi-threaded code. Love parallel stacks, etc. I have a question, though: I have a breakpoint set in a method that may be called by multiple threads. Once I hit the breakpoint, I really want to keep the focus on the thread that triggered the that breakpoint. However, when I hit "step", VS often switches to another thread (say I'm stopped on thread 1, but in the meanwhile, thread 2 hits my breakpoint). I know that I can manually freeze threads in the

Console.WriteLine does not output to Output Window in VS 2017

不想你离开。 提交于 2019-12-18 18:38:13
问题 In short: Console.WriteLine was working ok in VS 2015 but it is not working anymore in VS 2017. In detail: I have some VB code using Console.Write that outputs ok to Output Window in VS 2015, even when configured as Release ( to contrast with Debug ) launched with Start Debugging ( in contrast with Start Without Debugging ). Today I upgraded to VS 2017 ( Community version ), but the Console.Write is not working anymore in the same conditions as VS 2015. Maybe I made some config in VS 2015 in

Null reference pointer was passed to the stub when not debugging with IE

[亡魂溺海] 提交于 2019-12-18 11:41:11
问题 In VS2012, my web project debugs fine like always. I use IIS Express. Today, I installed VS 2013 and when I press F5 to debug, I get I can't find a solution to this anywhere. I tried clearing out temp files, change the port number from 7227 to something else, deleting iis express config files, etc. I even uninstalled and re installed VS 2013. I can run without debugging, then attach to IISExpress and that works, but I can't start with an F5. Any clues? EDIT: Happens on another machine as well

Is there a way to debug VB.NET With clause in Visual Studio?

限于喜欢 提交于 2019-12-18 08:29:58
问题 Sometimes you don't really care about the name of a variable, because it does not go outside of your sub's scope. In fact, specifying the name would add an extra line of code. Also now you have this name to deal with, which may add to potential refactoring effort (if you decide to rename it later). Have a look at the code below: Dim fileInfo As New FileInfo("filename.txt") With New FileSystemWatcher .Path = fileInfo.DirectoryName .Filter = fileInfo.Name .EnableRaisingEvents = True AddHandler

How can I detect if “Press any key to continue . . .” will be displayed?

与世无争的帅哥 提交于 2019-12-18 07:39:41
问题 When running a console application in Visual Studio, depending on your settings, it will add a prompt after the program exits: Press any key to continue . . . I have found how to detect if I am running under the debugger(use Debugger.IsAttached ), but it isn't helpful. Press CTRL-F5 to Start Without Debugging sets this flag to false , yet still shows the prompt . I want to detect this because I'd like to display my own message and wait for a keypress, but not double up keypress checks . I don

VS2013 Debug/Windows/Tasks: “No tasks to display”

☆樱花仙子☆ 提交于 2019-12-18 05:49:30
问题 I have Visual Studio Professional 2013 and I am debugging an application which uses async/await extensively. But when I stop at breakpoint and open Debug/Windows/Tasks window, it always says "No tasks to display." I've made two test, in one I can see task, in another I can't (I run program, and pause it). Or I can breakpoint at waiting fro task line. using System; using System.Threading; using System.Threading.Tasks; namespace TasksDebugWindowTest { class Program { static void Main(string[]

Why is the dictionary debug visualizer less useful in Visual Studio 2010 for Silverlight debugging?

馋奶兔 提交于 2019-12-18 05:45:12
问题 I was debugging in Visual Studio 2010, which we just installed and trying to look at a dictionary in the quick watch window. I see Keys and Values, but drilling into those shows the Count and Non-Public members, Non-Public members continues the trail and I never see the values in the dictionary. I can run test.Take(10) and see the values, but why should I have to do that. I don't have VS 2008 installed anymore to compare, but it seems that I could debug a dictionary much easier. Why is it