visual-studio-debugging

VS code is ignoring the breakpoint in c++ debugging

a 夏天 提交于 2019-12-01 22:24:46
I am debugging a c++ code in VS Code but it doesn't stop on breakpoint and visualize the variables, watch and call stack, which it was supposed to do. Instead of this, it prints this in debug console: Breakpoint 1, 0x000000000040074a in main () [Inferior 1 (process 9445) exited normally] The program '/home/hashir/x/a.out' has exited with code 0 (0x00000000) here is launch.json file: { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0",

FatalExecutionEngineError after restarting debug session

橙三吉。 提交于 2019-12-01 22:19:41
Since a few weeks (months?) I've been sometimes getting the following exception after restarting my ASP.NET application inside Visual Studio 2017 / 2019 Enterprise. It only happens when IIS Express was already running my application and I needed to start a new debug session after recompiling. Whenever this happens, I have to kill IIS Express ( taskkill /f /im iisexpress.exe ) and start a new debug session in VS. I can't figure out what triggers this issue. It started happening on VS 2017 Enterprise some day. Maybe because I received some Win10 update? Upgrading to VS 2019 Enterprise didn't

Why do my stack traces only include line numbers if the debugger is attached?

♀尐吖头ヾ 提交于 2019-12-01 21:59:21
I have a Xamarin.Android application that reports crashes to Raygun. The stack traces reported to Raygun from Release builds do not include line numbers. If I give the Release build configuration the same settings as the Debug configuration in the .csproj file: <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugSymbols>True</DebugSymbols> <DebugType>full</DebugType> <Optimize>false</Optimize> ... </PropertyGroup> then I still don't see line numbers in the stack traces sent to Raygun. However, if I run the app with the Visual Studio debugger attached, then

FatalExecutionEngineError after restarting debug session

不羁岁月 提交于 2019-12-01 21:12:18
问题 Since a few weeks (months?) I've been sometimes getting the following exception after restarting my ASP.NET application inside Visual Studio 2017 / 2019 Enterprise. It only happens when IIS Express was already running my application and I needed to start a new debug session after recompiling. Whenever this happens, I have to kill IIS Express ( taskkill /f /im iisexpress.exe ) and start a new debug session in VS. I can't figure out what triggers this issue. It started happening on VS 2017

What is debugattach.aspx and why can't the server find it?

给你一囗甜甜゛ 提交于 2019-12-01 16:57:49
I'm developing on an XP (SP3) machine with VS 2010 and IIS 5. I have two versions of the same site. We've released our first production version, so I forked the code into a new directory tree, and set up new virtual directories in IIS to point to the new trees. The projects are set up to run in the IIS rather than VS's server. The main site is an MVC 2 based project. My problem is that, when I hit F5 in Visual Studio 2010 to begin debugging the new version, I get a "Unable to start debugging on the Web Server. The web server could not find the requested resource." I spent the better part of

Unknown identifier when using constants C#

[亡魂溺海] 提交于 2019-12-01 16:49:11
When im trying to use constants in this C# application. When i run through the debugger, the constants come up as an "unknown identifier" Heres the code public static class ConstsConfig { public static string BASE_URL_FORMAT = "%s://%s%s"; } public static class NetworkConfig { public static string PROTOCOL = "http"; public static string HOST = "www.example.com"; public static string BASE_URL = "/test"; } This is the line of code where its not evaluating it seems like Uri uri = new Uri(String.Format(ConstsConfig.BASE_URL_FORMAT, NetworkConfig.PROTOCOL, NetworkConfig.HOST, NetworkConfig.BASE_URL

Start VS2010 silverlight debugging session with custom URL parameters

半腔热情 提交于 2019-12-01 16:41:53
问题 When I debug a Silverlight app, Visual Studio will just open the page with no extra URL parameters. So, the url will look something like this: http://localhost:65351/MyApp/ However, I want to add some specific functionality when someone navigates to the pages with extra parameters in the URL. For instance: http://localhost:65351/MyApp/A2Sk9zu That being a shortened link, which my app will interpret. I get that I can access the URL paremeters via HtmlPage.Document.QueryString.Keys but I can't

How to debug asp.net website code hosted on IIS?

强颜欢笑 提交于 2019-12-01 12:02:31
I am getting some issues/bugs in my code. I need to debug the code from my visual studio, but code is deployed on IIS. Can you please provide some solution so that I can debug the code and find the error I am using Windows XP. you can refer below link. This link contains what you need... http://www.codeproject.com/Articles/37182/Debug-your-ASP-NET-Application-while-Hosted-on-IIS If you need to debug a remote server, then you should refer to the following link: Remote IIS Debugging : Debug your ASP.NET Application which is hosted on "Remote IIS Server" (interestingly enough, by the same author

How to debug asp.net website code hosted on IIS?

蓝咒 提交于 2019-12-01 11:36:40
问题 I am getting some issues/bugs in my code. I need to debug the code from my visual studio, but code is deployed on IIS. Can you please provide some solution so that I can debug the code and find the error I am using Windows XP. 回答1: you can refer below link. This link contains what you need... http://www.codeproject.com/Articles/37182/Debug-your-ASP-NET-Application-while-Hosted-on-IIS 回答2: If you need to debug a remote server, then you should refer to the following link: Remote IIS Debugging :

Visual Studio 2017 Option: Use Managed Compatibility Mode per project

折月煮酒 提交于 2019-12-01 11:27:05
I work on two different projects. One is an asp.net web project, the other an addin for an arcmap.exe. For debugging the addin the option "Use Managed Compatibility Mode" must be set, otherwise an error occurs when starting the programm that should load the extension (see Start ArcMap AddIn for .net 4.5 ). Starting the asp.net project needs a long time, so code editing during running is desired. But when "Use Managed Compatibility Mode" is enabled, code editing while debugging does not work. So the solution for me until now was to change the option after loading the project. Is there any