To start debugging a Web application quickly in Visual Studio

Source: Internet
Author: User

Original: http://blog.csdn.net/effun/article/details/2638535

from 2003 to the 2005 , Visual Studio Some improvements have been made in the ability to start debugging, but because it's just a simple F5 key, many people may not notice. In fact, it is not very clear in the 2003 start debugging is what kind of problem, because has been more than two years useless, just vaguely remember that every boot will open a new IE window. Because It takes a little time to open IE, it's always looking for a way to reduce the amount of time that this process takes.

later2005come, this problem has been solved effectively. VSopen to yourself.IEThe process has a record that does not open a new window each time the debug is started, but rather to first determine if it has been opened beforeIEthe window, if you turn on thisIEwhether the window still exists, if not meet the above conditions to open a newIEwindow. But the premise is that there must be aVSOpen theIEwindow, so whenever you start debugging from theVSOpen aIEThe window is ready, you can press"Ctrl+f5"start, or use"View in Browser"the function. So, as long as thisIEThe window does not turn off, each pressF5There's no opening when you start debugging.IEThis action of the window, can save a little time.

However, what I said above is not the point I want to elaborate.

At the beginning of the year I upgraded the system toVista, and start usingVS2008, and also installed aIE8 Beta, that's when the problem comes. According to the above methodVSto open a newIEwindow,IEand theVSWill stop responding, especiallyIEwould be silly about half a minute or longer. Just don't turn it off later .IEThe window is no problem, but if you want toIEA new tab opens in the window and the same problem will occur.

this A problem made me really headache, and then I developed a habit, in vs After opening a new project, press ctrl+f5 Span style= "font-family:arial" >ie window, then go to a cup of tea or a toilet or something, haha, wait to sit down to continue to work, this is very inconvenient. Later on the internet also searched, and did not get any valuable solution.

then an occasional misoperation let me have a solution to this problem, in fact, is not a new idea, is before 2003 has been used in the way, but later used 2005 I couldn't remember it after all. A simple analysis of the cause of the problem, the main link is VS in the opening of a new IE , as long as bypassing this link can solve the problem, and will not affect the functionality of debugging.

If you want to letVSdo not turn on when debugging is startedIEWhat about the window? The easy way is to set the startup options for the site in the solution, set the startup action to"does not open the page. Waits for a request from an external application. ",OK, everything is done. After setting, pressF5Start Debugging orCtrl+f5There's no direct start .IEjump out, this time we need to open aIEwindow, and then enter the appropriate address to do so. There are two cases here, one is the use ofIIS, and the other is to useVSBring your ownWebserver. The former because the address is fixed, there is nothing to say, directly to the address bar in the input can be, or simply add to the collection folder, and bring your ownWebThere is a problem with the server.

the first question, the one that comes withWebServer inVSdoes not start or start debugging before it is not open, so at least firstVSonce, the little icon will appear in the tray. The second question, the one that comes withWebserver Each start port number is not the same, add to the collection is not reliable, can only input each time, more trouble. Don't be so troublesome, right click on the small icon in the tray and select"in theWebOpen in Browser"on the line. The third problem is that there will be a long pause after opening. Haha, I don't know why, but here's a little trick, just take a look. Just use the method to open the browser before you first confirm that at least a browser's window, if you do not open one, and then follow the method to open the address on the line. Opening an address from that little icon will open in the lastIEwindow to open a new tab, and then navigate to the root directory of this site, so it's done!

This trick can solve my problem, but also hope to help meet the same problems of peers, but also hope that Microsoft has an early problem solution.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.