visual-studio-debugging

How to debug a web service in a C#/.NET solution from a web application

吃可爱长大的小学妹 提交于 2019-12-08 16:05:29
问题 I have an application solution consisting of eight projects in C#/.NET with Web services. One of the projects is of web services. All the data is fetched through the web services in a Windows Forms application. But while debugging my Windows application I am unable to debug the web services called for fetching the data in Visual Studio 2010. How do I debug a web services project in a solution when data fetching events are fired? 回答1: Normally, when debugging in Visual Studio the selected

Exactly what ports must be open for MSVSMON.exe (remote debugging) to work?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 16:01:08
问题 I'm asking my network admin to open up ports on the firewall to allow remote debugging. It says in the documentation on MSDN that it needs UDP 135. However, the admin says that a number of non-standard 19xx ports are being used. Exactly what ports are required for remote debugging to work? 回答1: You need to open ports on both your computer and the remote computer. Primarily it's TCP 135 not UDP 135. All the ports and steps are listed here: http://msdn.microsoft.com/en-us/library/h0d7tte4(v=vs

Visual Studio 2013 remote debugging, auto deploy?

孤者浪人 提交于 2019-12-08 15:07:46
问题 When I tried remote debugging with Windows Store applications (Metro applications), it was very easy. In the Start drop down I could choose one of the remote computer. Then VS built the project and automatically deployed the executable to the remote computer and ran it. It felt as if it were local debugging. Now that I want to try remote debugging with an Windows application (simple C# Windows Forms), it was not that easy. I read the following page: http://msdn.microsoft.com/en-us/library

Actual Debug Symbols for ASP.NET MVC 2 Release Version

≯℡__Kan透↙ 提交于 2019-12-08 15:00:08
问题 I need the actual debug symbols from the released version of ASP.NET MVC 2 (the version that gets installed via the web platform installer). I know I can download the source, build and use the debug symbols from that. But there are a couple issues with that approach: Requires that all other dependencies be rebuilt using this version of the DLL since it's not signed. This isn't feasible if you are using 3rd party libraries which don't provide the source. The built version from the latest

How to debug a nuget package without WIP features using VS 15.7 and above

本小妞迷上赌 提交于 2019-12-08 10:52:40
问题 I've read this: How to debug into my nuget package deployed from TeamCity? but for some reason my project cannot be debugged, without asking me to specify for the location of the source file. Using the following commands i was able to properly create a package (without having to add any of it in the .csproj) with symbols The package in question is located on a local nuget feed. It will prompt me for the source file during debugging, despite the nupkg containing debugging symbols+sources it

Removing Debug and Release Configurations from Visual Studio 2008

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 07:17:28
问题 I modified the default Debug configuation, so that the output directories resemble $(SolutionDir)$(PlatformName)/$(ConfigurationName) . Next, I created debug variations, DebugStatic and DebugDll , to be more explicit about the target being created. I created them by copying the Debug configuration. In similar fashion, I created ReleaseDLL and ReleaseStatic from the modified Release configuration. Using Configuration Manager , I removed the Debug and Release configurations. The Debug and

Visual Studio 2015 StandardCollector.Service.exe runaway I/O

孤街浪徒 提交于 2019-12-08 04:26:17
问题 Visual Studio 2015 (14.0.25431.01 Update 3) is coming to a complete halt due to massive I/O caused by the StandardCollector.Service.exe. Debugging a project results in a sustained 200 mb / sec data written in the temp directory. All performance data (etl). Memory allocation is normal. This behaviour is new. I used Visual Studio 15 for years without (but for the usual) complaints. I tracked it down to the Diagnostic Tools. Disabling Diagnostic Tools in Tool -> Debugging -> General -> Options -

Stepping into .NET Source Still Doesn't Work

情到浓时终转凉″ 提交于 2019-12-08 04:23:43
问题 This is embarrassing -- I've been programming .NET for many years and despite following the MSDN instructions for debugging the .NET sources, I've never been able to get it to work. When I attempt to step into some Framework code (the c'tor for StringBuilder , for example), the debugger just skips right over, onto the next statement. I can't step into any framework code. I'm using VS 2017, Framework v4.7. Below are the debugging options. 回答1: Go to Symbols and add this URL http:/

Strange memory content display in Visual Studio debug mode

时光怂恿深爱的人放手 提交于 2019-12-08 04:00:28
问题 I am writing some multi-thread C program. I tried to modify the few instructions at the beginning of a function's body to redirect the execution to somewhere else. But I noticed that when debugging within Visual Studio 2015, some memory location seems to be unchangeable as displayed in the Memory window. For example: In below picture, a function ApSignalMceToOs() begins at 0x7FFBBEE51360 . I have unprotected the memory range 0x7FFBBEE51360 to 0x7FFBBEE5136E to modify it. Line 305 to 312

How to debug a WebMethod in ASP.NET

故事扮演 提交于 2019-12-08 02:53:18
问题 I have the following WebMethod in my fileName.asmx.cs file. [WebMethod(EnableSession = true)] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public string GetData(string value) { //----- //Respective code querying the database //----- } Here is the respective ajax call using jQuery getData: function (type) { var response = ""; $.ajax({ type: "POST", dataType: 'json', url: "../GetData", data: '{value:' + type.toString() + '}', async: false, contentType: "application/json; charset=utf-8",