visual-studio-debugging

Unable to set the next statement. The next statement cannot be changed at this time

百般思念 提交于 2020-01-03 13:02:34
问题 I suddenly started experiencing this error in Visual Studio 2015 and 2017, when trying to move the yellow cursor (next statement) in debugmode. The code I want to move over is nothing special (i.e does not include any try-catch and/or exception statements) and stepping through the code (F10, F11) works normally. Here is a code sample: protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ddlCountry.SelectedIndex = 0; ddlCountry.DataSource = new List<string>() {"Germany",

VS 2013 ASP.NET can't modify the code while debugging

佐手、 提交于 2020-01-03 12:31:15
问题 I'm working with a ASP.NET 2.0 project that has been upgraded from vs 2005->2010->2013. In vs 2005 and 2010 I can modify the code while debugging, save the changes, and reload the page with the changes applied. Now in vs 2013 I can't do this. Can't change the code when I hit a breakpoint. Tried to activate all checkboxs in "Edit & Continue" options, but nothing worked. It's annoying having to stop debugging and recompile the app to debug again the changes. How can I solve this? 回答1: FINALLY

Why does F10 (step over) in Visual Studio 2010 not work?

佐手、 提交于 2020-01-03 06:48:10
问题 I also tried 2 solution. But It doesn't worked. Go to Tools > Options menu in Visual Studio. Go to Debugging > General menu item in left pane. In right view you will see and option Step over properties and operators (Managed only). Uncheck this option and then you are all set. and Go to Tools > Options menu in Visual Studio. Go to Debugging > General menu item in left pane. In right view you will see and option Enable Just My Code (Managed only). Uncheck this option and then you are all set.

Hover Tooltip stopped working in Visual Studio 2012 Express for Web?

牧云@^-^@ 提交于 2020-01-03 03:41:21
问题 Was working on a new solution, new project in Visual Studio 2012 Express for Web. For some reason, the tooltip info that normally appears for variables and objects when I hit a breakpoint while debugging is no longer working, even for my older solutions/projects that used to work fine. The breakpoints work fine, but no info at all appears when I hover over variables, etc. Have no idea if this has anything to do with it, but I did set this new solution/project to ASP 4.5. 回答1: Repairing Visual

msvsmon.exe crashed when debugging

杀马特。学长 韩版系。学妹 提交于 2019-12-31 08:47:08
问题 When I debugging in VS2013 update3, msvsmon.exe crashed when hit at a breakpoint. It shows "The debugger's worker process (msvsmon.exe) unexpectedly exited. Debugging will be aborted". I'm not using remote debug. Is it possible to shut down the msvsmon.exe to avoid calling it when debugging ? 回答1: Deleting all of the breakpoints solves the problem when I hit this error. Disabling the breakpoints was not enough - they had to be deleted. I was able to attach to a process numerous times. Once I

StackTrace/StackFrame don't return expected info in a production environment

大兔子大兔子 提交于 2019-12-30 01:26:49
问题 I use the following method in my ASP.NET web application to receive the stack trace for an exception: public static void getStackTraceInfo(System.Diagnostics.StackTrace trace) { for (int i = 0; i < trace.FrameCount; i++) { int nLine = trace.GetFrame(i).GetFileLineNumber(); int nCol = trace.GetFrame(i).GetFileColumnNumber(); string methodName = trace.GetFrame(i).GetMethod().Name; } } try { } catch(Exception ex) { getStackTraceInfo(new System.Diagnostics.StackTrace(ex, true)); } It gives me

Unable to start debugging - Visual Studio 2012

浪尽此生 提交于 2019-12-29 06:48:13
问题 "Unable to start debugging 'C:\Windows\System32\WWAHost.exe'. The Microsoft Visual Studio Remote Debugging Monitor (MSVSMON.EXE) does not appear to be running on the remote computer. This may be because a firewall is preventing communication to the remote computer. Please see Help for assistance on configuring remote debugging." Searched for similar posts, but didn't found one. If duplicate just inform. I am not trying to connect to any remote machine. Just testing on my local machine. Is

Need to debug my Web API service that's requested from a client machine - need help, how do I do this?

落爺英雄遲暮 提交于 2019-12-29 05:17:51
问题 I built a Web API service that's hosted locally on my machine in IIS. I have an iOS app that I'm running via XCode that makes the call to the web service. The connectivity is there, and works. The iOS app successfully makes the connection to my published web service. The problem is my web service is returning a non descriptive error to the client (iOS), so what I need to be able to do is step through the web service code while running my iOS app. So, in summary: I run an iOS app via my

How to step into C/C++ DLL from C# application while debugging

只愿长相守 提交于 2019-12-28 14:03:54
问题 I have two project in my solution: C/C++ Win32 DLL and some C# application. What I have to do to be able to step into DLL while debugging? I switched on all debugging options in C++ project's settings and copied to C# application root next files: MyLib.dll, MyLib.pdb, vc90.pdb, vc90.idb, but it doesn't helped. What additional actions have I to carry out? 回答1: Have you turned on Enable Unmanaged Code Debugging in your C# project? 回答2: I'll throw in additional answer in case someone will come

debugging with visual studio using redirected standard input

时光总嘲笑我的痴心妄想 提交于 2019-12-28 11:56:36
问题 I am debugging c++ console application with Visual studio. I exhausted of inserting the same input every time I debug this program. I would like to use the same input more times. I do this without debugging in command line with command: Program.exe < 1.in Is it possible to use debugging with standard input redirected from file??? I already tried looking in to procejt properties. I tried setting Command to $(TargetPath) < 1.in instead of $(TargetPath). I also tried setting Command Arguments to