In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly shows you the "sample Analysis of ASP.NET Unit Test", which is easy to understand and clear. I hope it can help you solve your doubts. Let me lead you to study and study the "sample Analysis of ASP.NET Unit Test".
I used to think that ASP.NET unit tests were run on WEB servers, so I ran them with Debug, so ASP.NET unit tests automatically Attach to Web servers and can be debugged. But in fact, the right thing to do to make ASP.NET unit tests debuggable is:
1. In Web.config, find this node and change the debug attribute to true
two。 Add the phrase "System.Diagnostics.Debugger.Break ()" at the beginning of the ASP.NET unit test code
3. Run the ASP.NET unit test
When running the unit test, there will be a prompt box saying that the program has encountered a breakpoint, whether to enter debugging, of course, is to choose debugging. As shown in the figure:
After selecting the Debug program, there will be a second prompt box. Let's choose which program to debug. We can choose an appropriate VSTS, as shown in the figure:
After selecting an instance of VSTS, the program stops on the statement System.Diagnostics.Debugger.Break ()
At this point, press F5 again to keep the program running. when the program encounters the next breakpoint, it will stop, and you can debug the unit test of ASP.NET.
The above is all the content of the article "sample Analysis of ASP.NET Unit Test". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.