visual-studio-debugging

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

拈花ヽ惹草 提交于 2020-01-23 07:50:20
问题 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

Viewing dynamically alloocated null-terminated strings with Visual Studio's debugger

回眸只為那壹抹淺笑 提交于 2020-01-21 08:16:46
问题 Is there any way to change the default behavior of Visual Studio's debugger such that when hovering over a null-terminated, dynamically allocated character array (C++), it will display the full content of the string, rather than the first character only? I should mention that I am using Visual Studio 2010. If there is a way to achieve this in VS2012 only though, I would be interested to know that as well! 回答1: There's a useful link for visual studio, C++ Debugger Tips: To interpret a pointer

Debugging Azure: Error attaching the debugger to the IIS worker process

孤街浪徒 提交于 2020-01-19 05:04:54
问题 I have a web application asp.net to deploy to Windows Azure. I try to run it on local first. But when debugging, I catch this error from VS2010: "There was an error attaching the debugger to the IIS worker process for URL 'http://127.255.0.0:82/' for role instance 'deployment16(6).WindowsAzureProject2.WebApplication3_IN_0'. Unable to start debugging on the web server ......." I've search so hard to find the solution for this problem but there's nothing seems work for me. I'm a newbie in

Debugging Azure: Error attaching the debugger to the IIS worker process

為{幸葍}努か 提交于 2020-01-19 05:03:30
问题 I have a web application asp.net to deploy to Windows Azure. I try to run it on local first. But when debugging, I catch this error from VS2010: "There was an error attaching the debugger to the IIS worker process for URL 'http://127.255.0.0:82/' for role instance 'deployment16(6).WindowsAzureProject2.WebApplication3_IN_0'. Unable to start debugging on the web server ......." I've search so hard to find the solution for this problem but there's nothing seems work for me. I'm a newbie in

VS2017 Debug my Shared Libraries on Linux Remote

社会主义新天地 提交于 2020-01-17 08:28:28
问题 I have a solution with few projects, in which there are 2 dynamic shared libraries. When I build the solution on remote system linux based, all goes ok. Then I try to debug the process. I launch the application directly on the board and try to attach to the process, but I'm not able to step into instructions of my shared libraries. What's the problem? could it be because, as I read on the output panel, cannot the system load libraries' symbols..?? if so, how do I fix it? 回答1: thanks to

How do I enable native debugging from an asp.net core project in Visual Studio 2015?

喜夏-厌秋 提交于 2020-01-17 05:45:10
问题 In other VS 2015 C# project types the Property Page for the project contains a checkbox under the Debug tab which enables native debugging. I cannot see this in an Asp.Net Core project and am therefore unable to step into a C++ Dll dependency which I have the code for. 回答1: It would have a limitation for native debugging directly. Reference: No native code debugging in CoreCLR console application projects in VS2015? One workaround is that using the "Attach to process". 来源: https:/

VC++ SSE code generation - is this a compiler bug?

房东的猫 提交于 2020-01-14 09:11:56
问题 A very particular code sequence in VC++ generated the following instruction (for Win32): unpcklpd xmm0,xmmword ptr [ebp-40h] 2 questions arise: (1) As far as I understand the intel manual, unpcklpd accepts as 2nd argument a 128-aligned memory address. If the address is relative to a stack frame alignment cannot be forced. Is this really a compiler bug? (2) Exceptions are thrown from at the execution of this instruction only when run from the debugger , and even then not always. Even attaching

VC++ SSE code generation - is this a compiler bug?

不想你离开。 提交于 2020-01-14 09:10:33
问题 A very particular code sequence in VC++ generated the following instruction (for Win32): unpcklpd xmm0,xmmword ptr [ebp-40h] 2 questions arise: (1) As far as I understand the intel manual, unpcklpd accepts as 2nd argument a 128-aligned memory address. If the address is relative to a stack frame alignment cannot be forced. Is this really a compiler bug? (2) Exceptions are thrown from at the execution of this instruction only when run from the debugger , and even then not always. Even attaching

Watch Icons and Items in Visual Studio 2015

血红的双手。 提交于 2020-01-14 08:10:09
问题 When I hover over a JObject variable in my C# code, I see a watch window pop up. When I expand that, I see the following image: Questions What does the blue symbol/icon next to ChildrenTokens signify? Where is a comprehensive list of such symbols/icons? We all see ChildrenTokens listed in the watch window. However, when I am in code and try to access the ChildrenTokens property, intellisense doesn't show it. Why? Thank you. 回答1: As you can see from JObject Documentation, ChildrenTokens is a

Watch Icons and Items in Visual Studio 2015

 ̄綄美尐妖づ 提交于 2020-01-14 08:09:42
问题 When I hover over a JObject variable in my C# code, I see a watch window pop up. When I expand that, I see the following image: Questions What does the blue symbol/icon next to ChildrenTokens signify? Where is a comprehensive list of such symbols/icons? We all see ChildrenTokens listed in the watch window. However, when I am in code and try to access the ChildrenTokens property, intellisense doesn't show it. Why? Thank you. 回答1: As you can see from JObject Documentation, ChildrenTokens is a