visual-studio-debugging

visual studio 2015 xsl debugging transformation failed WebException SocketException

半世苍凉 提交于 2020-06-11 07:39:11
问题 When debugging an xslt in VS 2015 I get the following error message "xsl transformation failed see output window for details WebException Unable to connect to the remote server SocketException No connection could be made because the target machine actively refused it 127.0.0.1:1234" If I start debugging with my cursor in the xml document (as opposed to xsl) it sometimes works, but not always. 回答1: In my web project I fixed this by clicking 'debug->start without debugging'. I could then do

visual studio 2015 xsl debugging transformation failed WebException SocketException

二次信任 提交于 2020-06-11 07:38:20
问题 When debugging an xslt in VS 2015 I get the following error message "xsl transformation failed see output window for details WebException Unable to connect to the remote server SocketException No connection could be made because the target machine actively refused it 127.0.0.1:1234" If I start debugging with my cursor in the xml document (as opposed to xsl) it sometimes works, but not always. 回答1: In my web project I fixed this by clicking 'debug->start without debugging'. I could then do

visual studio edit and continue does not work

折月煮酒 提交于 2020-05-11 04:03:06
问题 In my project which is a hybrid project (in previous it was a web forms project that then we modified to use mvc pattern). Now I want that in debug mode, I want to change something in my cs file, and then I want the changed code to run. I've tried enabling and disabling tools -> options -> debug -> edit and continue checkbox part. When it is enabled I can't change code in my project while debugging. When it is disabled I can change code but it does not affect on running part. for example. int

Attach debugger to local IIS without administrator permission

血红的双手。 提交于 2020-03-23 12:16:25
问题 To be able to attach to w3wp.exe Visual Studio wants to have elevated permissions so I either have to start VS as admin or add my local user to the Administrators group. Is there any other way, another group etc, to be able to attach to w3wp.exe without having elevated permissions? 回答1: Attach debugger to local IIS without administrator permission I am afraid you can NOT do that without administrator permission. According to the ASP.NET Debugging: System Requirements: If you change the ASP

Visual studio 2017 process with an id of is not running error

纵饮孤独 提交于 2020-01-25 00:38:07
问题 when I open a project in VS and Press F5 I get the error of "Process with an id of "xxxx" is not running" but if I keep Visual studio open and wait for about 30 minutes and then press F5 it works fine! Does anyone knows why? 回答1: 1.Run Visual Studio as an administrator 2.Open your project file(In Solution Explorer, right-click project=>unload project=>edit x.xxproj) Delete script below: <DevelopmentServerPort>63366</DevelopmentServerPort> <DevelopmentServerVPath>/</DevelopmentServerVPath>

Can the watch window value of a List<> be customised?

落花浮王杯 提交于 2020-01-24 08:50:09
问题 Overriding a class's ToString() is usually all you need to do to get custom formatting in the watch window, but when the class is derived from a list it doesn't seem to work. class ListOfInts : List<int> { public override string ToString() { return string.Join(",", this); } public static ListOfInts test = new ListOfInts() { 3, 4, 5 }; } Inspecting 'test' in the watch window I get ListOfInts.test Count = 3 ListOfInts and have to manually force the issue like so: ListOfInts.test.ToString() "3,4

Can the watch window value of a List<> be customised?

ぐ巨炮叔叔 提交于 2020-01-24 08:50:08
问题 Overriding a class's ToString() is usually all you need to do to get custom formatting in the watch window, but when the class is derived from a list it doesn't seem to work. class ListOfInts : List<int> { public override string ToString() { return string.Join(",", this); } public static ListOfInts test = new ListOfInts() { 3, 4, 5 }; } Inspecting 'test' in the watch window I get ListOfInts.test Count = 3 ListOfInts and have to manually force the issue like so: ListOfInts.test.ToString() "3,4

Visual Studio loses ability to attach to Unity, why?

牧云@^-^@ 提交于 2020-01-23 11:53:13
问题 I'm using Visual Studio with Unity. In general in VS I can simply click "Attach to Unity" and it will build the solution and indeed attach to Unity. Sometimes, however, a project loses the "ability" to do so, what means that suddenly clicking the button will only build the solution and not attach to Unity. I really would like to know what's happening there as I'm not aware of doing anything that could result in such a behaviour. There are some parameters that might have an effect: it happens

Visual Studio loses ability to attach to Unity, why?

核能气质少年 提交于 2020-01-23 11:51:26
问题 I'm using Visual Studio with Unity. In general in VS I can simply click "Attach to Unity" and it will build the solution and indeed attach to Unity. Sometimes, however, a project loses the "ability" to do so, what means that suddenly clicking the button will only build the solution and not attach to Unity. I really would like to know what's happening there as I'm not aware of doing anything that could result in such a behaviour. There are some parameters that might have an effect: it happens

Visual Studio debugger doesn't display std::string properly in debug

落爺英雄遲暮 提交于 2020-01-23 07:50:30
问题 Me and my team are having an issue with Visual Studio displaying gibberish instead of proper string contents when I pause my program. The string inside has correct data, it's just that the debugger of VS gets lost somehow. I marked the correct contents in green, incorrect in red. You can see that the std::string defined as const std::string testStdString = "contents of std::string"; Displays as "\bÄĎD\x19" in debug hover and watch window. But the C-string from .c_str() displays fine. Console