Brought from: http://salearningschool.com/displayArticle.php?table=Articles&articleID=1117&title=Debugging%20in%20.Net,%20(XML%20Web%20Services)
Just listing some related notes.
- Tools: DbgClr -GUI Based, CorDbg – command line based
- You can use the debug menu. Start, Step Into, Step Over, New Breakpoint options – as available in most Good to great IDEs for debugging
- Watch Window: Check the values of variables and expressions
- Call Stack Window: Function and procedure calls currently on stack
- Locals Window: Variables that are local to current context
- Autos Window: Variables in the current statement and in the previous statement
- Breakpoints Window: Function break point, file breakpoint, address breakpoint, data breakpoint. Gives information on breakpoints – name, condition, hit count
- Debug XML Web-services: During Development: Place break points in the line where you want to start your debugging. Start the application, keep on executing, and come to the point where the breakpointed (never mind – my invention) statement will execute. Now you can use other windows (watch, call stack,..)
- Debug XML Web-services: After Deployment: Open the XML webservice in IE, from visual studio debug menu select processes -> aspnet_wp.exe then select Common Language Runtime, select the program to debug, close process dialog box. From visual studio, open the code behind the file that you want to debug, then set breakpoints there
- Debug Must: In the web.config file, set debug=true.
- Along with debugging, you can use tracing to collect runtime information for debugging purpose.
- Three types of Tracing: TextWriterTraceListener: Write messages to an object of the TextWriter class. EventlogTraceListener: Write messages to event logs. DefaultTraceListener: Send debug messages to the output window
- As tracing usually generates a lot of information, it’s better that you turn off tracing while you don’t intend to use it. Use TraceSwitch classes for the purpose
From: http://sitestree.com/?p=3772
Categories:Misc .Net
Tags:
Post Data:2016-07-17 14:07:04
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada