visual-studio-debugging

How to debug class library that called from external app?

瘦欲@ 提交于 2019-12-28 09:55:05
问题 There is an external workflow that executes C# scripts and is able to work with DLL files(my class library). Is it possible to attach debug to my class library project so breakpoint will hit once this WF will call it? Thanks 回答1: Yes, you can do this with Visual Studio. You have two options: Configure your project to start the external program Open your DLL project. On the properties for the project, go to the Debug tab. Choose Start external program and give the path of the external program

How to debug class library that called from external app?

时光毁灭记忆、已成空白 提交于 2019-12-28 09:54:37
问题 There is an external workflow that executes C# scripts and is able to work with DLL files(my class library). Is it possible to attach debug to my class library project so breakpoint will hit once this WF will call it? Thanks 回答1: Yes, you can do this with Visual Studio. You have two options: Configure your project to start the external program Open your DLL project. On the properties for the project, go to the Debug tab. Choose Start external program and give the path of the external program

Connecting to Visual Studio debugging IIS Express server over the lan

大兔子大兔子 提交于 2019-12-27 18:23:13
问题 I have a test ASP.NET MVC3 application developed in VS2012. When I start debugging the app is accessed from the host machine via the request to http://localhost:<portnumber> . But if I try to access the same application from the remote machine in the intranet via the http://<ip>:<portnumber> I get HTTP error 400: Bad request. Invalid Host Name. As far as it runs on IIS Express any server configuration is inaccessible. Are there any ways of solving this? 回答1: Update I made a video that better

Connecting to Visual Studio debugging IIS Express server over the lan

点点圈 提交于 2019-12-27 18:22:30
问题 I have a test ASP.NET MVC3 application developed in VS2012. When I start debugging the app is accessed from the host machine via the request to http://localhost:<portnumber> . But if I try to access the same application from the remote machine in the intranet via the http://<ip>:<portnumber> I get HTTP error 400: Bad request. Invalid Host Name. As far as it runs on IIS Express any server configuration is inaccessible. Are there any ways of solving this? 回答1: Update I made a video that better

VB.Net editor removes one line of code every time debug is started

a 夏天 提交于 2019-12-25 07:48:43
问题 I'm using Visual Studio 2015 Community Edition and my problem is - every time when I click debug, one line of code is moved to the right of the previous line from the current file being edited. Some of my coworkers have seen this behavior too. C# works fine. It happens only in VB.NET with all file types: web.config, .vb, .aspx. This causes a problem because the line is removed after the project is compiled, so the debugger can never hit breakpoint because it says that the source code is

Get “Internal error in the expression evaluator” on “Add watch” function when trying to debug WCF service code (MSVS 2013)

痴心易碎 提交于 2019-12-25 06:42:36
问题 Few days ago I moved my solution to MSVS 2013. It works fine except one thing: when I trying to debug code of my WCF service it works, but when I want to watch state of any variable it says: "Internal error in the expression evaluator". Add watch function works normal on client side, but in service code it broken. I'm trying to debug my own WCF service running on the localhost. Could you help me, how to repair this? Here MSVS info: Microsoft Visual Studio Professional 2013 Version 12.0.30110

How to debug a referenced assembly in Xamarin.Android project

孤街醉人 提交于 2019-12-25 04:13:12
问题 I am testing out Xamarin.Android via Visual Studio 2010. My Xamarin.Android VS2010 Solution contains two projects: The Android project and a project (I'll call it MyProject for this post) that does all the business logic for the demo app that I'm making - The Android project references the MyProject project/assembly). When I run the appliation, I am receiving an exception error in MyProject and, so, I would like to step into MyProject and debug the problem. However, when I debug, VS2010 is

How to replicate and copy the contents of watch window in Visual studio into a file (With the branching info being present in it)

泪湿孤枕 提交于 2019-12-25 02:29:00
问题 I am debugging C++ using VS2008. The watch window used for debugging stores all the dynamic values in various objects, arrays, variables etc. I want to copy the entire contents on this watch window into a file so that I can forward the debugging context to someone else. If I just selct all (CTRL + A), and paste the contents in a file then i wont get the branching information (i.e info like an object might have various sub-objects in it). Can anyone kindly let me know how to do this in VS2008.

How to debug System.Web.dll?

╄→尐↘猪︶ㄣ 提交于 2019-12-24 21:56:21
问题 I want to see what happens inside System.Web.dll in ASP.NET MVC Application. I have VS 2017 and ASP.NET MVC Application. I loaded debug symbols for System.Web.dll. After that call stack changed color from grey to black. But if trying click on any line in call stack for System.Web.dll, source code is not appearing and instead this is shown the message: Source information is missing from the debug information for this module (screenshot) I am want seeing and debugging code of System.Web.dll.

IntelliTrace Historical Debugging does not jump in Click-EventHandler

≯℡__Kan透↙ 提交于 2019-12-24 20:42:33
问题 I have created a small WPF-Application with one Button and a Label. The Click-Eventhandler of the Button do private void Button_Click(object sender, RoutedEventArgs e) { var s = this.Height; this.lbl.Content = s; } I have activated IntelliTrace Event collecting. When I run debug and click on the Button, I see in the IntelliTrace-Event-List the corresponding events: When I click on "Activate Historical Debugging" Visual Studio shows the following: and this StackTrace: Why can I not jump to the