visual-studio-debugging

'var_name'is not declared. It may be inaccessible due to its protection level.' in debug mode

别说谁变了你拦得住时间么 提交于 2019-11-29 09:24:25
This behavior is in a vb.net web application solution with multiple class library projects referenced by the web app. The code compiles, but in debug mode, some functions/subroutines in the referenced class libraries have local variables that display 'var_name' is not declared. It may be inaccessible due to its protection level. in the watch and immediate windows. The mouse_over intellisense doesn't work on those local variables. In some sub/functions the variables' values are accessible until I step into a Try..Catch All variables passed into the Sub/Function are accessible. Variables defined

Visual Studio : Hotkey/way to step into f() in statement a()->f(b(),c(),d()) directly

◇◆丶佛笑我妖孽 提交于 2019-11-29 09:19:46
While debugging, I am currently at this (next) statement :- system<System_Body>()->executeFracture(calculateFracture(data)); ^^1 ^^2 How to step into executeFracture() or calculateFracture() directly and easily (without changing the code)? Hotkey? Extension? Plugin? My poor solutions With F11 , I have to step into system<System_Body>() first. I can also jump to the source of executeFracture() and press ctrl+F10 from there, but it is not convenient. Edit MotKohn and TheUndeadFish advised using step into specific , thank! Another similar thread (I just found later) tells that its hotkey is Shift

Unable to start debugging - Visual Studio 2012

≡放荡痞女 提交于 2019-11-29 06:28:49
"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 there any way to solve this issue. (I'm using Windows 8 Enterprise 64-bit, just a javascript project)

Visual studio 2012 and Qt4.8.5 : How to see QString contents in debug mode.

[亡魂溺海] 提交于 2019-11-29 06:23:31
问题 I use visual studio 2012 and Qt4.8.5, unfortunately I can not see the QString text variable when I work in debug mode. Is someone has a tip allow it ? Qt4.8.5 plug-in doesn't exist for VS2012. Thank a lot Xavier 回答1: There is a quick and explicit solution (MSVC native, no need for plugins nor setting up .dat files), see my answer from here Say you have QString str ( Qt4 ), then add to the debugger watch window: ((str).d)->array,su the appendix ,su tells the debugger to interpret the data as

asp.net mvc debugger throwing SEHException

左心房为你撑大大i 提交于 2019-11-29 04:40:53
While I am trying to debug (using F5) the application with in VS, it is showing me the following exception: External component has thrown an exception. and here is the stack trace: Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Runtime.InteropServices.SEHException: External component has thrown an exception.` Source Error: An unhandled exception was generated during the execution of the current web request. Information

Visual Studio Debugger not attaching to Unity

对着背影说爱祢 提交于 2019-11-29 02:54:28
问题 I'm having issues getting Visual Studio's debugger to attach to Unity - editing and compiling scripts inside VS is working fine - however, when clicking "Attach to Unity" or "Attach to Unity and Play", the code compiles but nothing else happens. If all the builds are up-to-date then the button does nothing at all. I can manually start the game inside Unity and it runs the up-to-date code, but it is not attached to the VS debugger. I have Unity 5.3.5, Visual Studio Tools for Unity 2.2.0.0 and

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

余生颓废 提交于 2019-11-29 01:43:13
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 MacBook, and it connects to my .NET Web API service. My Web API service is published to my local IIS, and is

How to get ToString() to show up in Debug

ⅰ亾dé卋堺 提交于 2019-11-29 01:34:20
I'd like to get ToString() to display for a class under my control in debug mode. It'd be nice if this was the first thing to show up when you hover over a variable with the mouse. Is there an attribute for this? Jalal Said Mark your class with [System.Diagnostics.DebuggerDisplay("{ToString()}")] Test: [System.Diagnostics.DebuggerDisplay("{ToString()}")] class MyClass { private string _foo = "This is the text that will be displayed at debugging" public override string ToString() { return _foo; } } Now when you hover over a variable with the mouse it will show This is the text that will be

C# VS2010 Entering break mode failed

浪尽此生 提交于 2019-11-28 23:48:23
问题 I was having some problems with my breakpoints later in my program saying that they would not be hit because the source code and the compiled code was different. I decided to put a break point on my public MainWindow() function, and see what happened. Now I get the error that Entering break mode failed for the following reason: Source file 'F:\cAdmin\OO\OO\MainWindow.xaml.cs' does not belong to the project being debugged. I find this funny because my project is stored on my flash drive (L:)

Visual Studio - suddenly cannot debug tests

流过昼夜 提交于 2019-11-28 22:00:03
问题 I'm not sure what I did, but all of a sudden, my Visual Studio 2012 will not debug any tests. If I select a test from the Test Explorer and tell it to run, it simply outputs this in the Test Output window: > ------ Discover test started ------ > ========== Discover test finished: 29 found (0:00:01.3371755) ========== > ------ Run test started ------ Process with an Id of -1 is not running. > ========== Run test finished: 0 run (0:00:01.4711861) ========== what the heck does that mean?! After