The interdev| page has been working on an ASP project recently, using it, and finding it easier to develop with Microsoft InterDev. Maybe there are other common Ides, however, since the use of InterDev, significantly reduced the keyboard "R, E, S, p, O, n 、.、 W, R, I, T, D, M, G, B, X, A, L" and other key loss degree, why? Because finally no longer write Response.Write, MsgBox, Alert and other debugging statements. Also often see someone on the internet asked InterDev how to turn on debugging, debugging the process of how to deal with the errors and so on ... Look at these problems, some have been bothering me for a long time, and some are still bothering me, so today's whim, the experience I used to share out the hope that in the discussion with you to solve those problems that plague us.
Setting up a InterDev debugging environment
First, it is of course necessary to have IIS (Internet information Service), about the installation method of IIS and FrontPage Server extension also ask you to check the relevant information yourself.
Second, the establishment of New InterDev project
Follow the tips of Porject Wizard to build a new project, such as: AITD.
There's a problem here. I haven't figured out why Microsoft is going to make a "local mode" and a "Master mode" Nirvana. There have been a lot of problems with this over the two days t.t
Third, OK, the project has been established, if it is a new development site, in the project to add a new directory, add new files slowly do it. If you have finished the page file, it is even simpler, directly to the directory according to the structure you need to drag into the project inside the line.
Setting up an IIS debugging environment
Open the Control Panel-> Management tool->internet Information Service, in the default Web site of this computer, you can see InterDev automatically generated a new virtual directory: AITD, want to debug, the following is the key parts:
Right-click the virtual directory and select Configure Server Extensions in all tasks. If the virtual directory is automatically generated by InterDev, the server extensions have been configured, of course, for the sake of insurance, you can also click "Check Server Extensions", most of the problems IIS will repair themselves, and now basically sit back and relax.
Second, right click on the virtual directory, click on the property in the pop-up menu, clicking the Configure button in the application settings block on the Contents tab of the property page, in the pop-up page, select Enable ASP server-side script debugging and enable ASP client script debugging on the Application Debugging tab card. In this way, you can InterDev run the project when the ASP page set breakpoints to debug.
Debugging user-defined dynamic-link libraries (DLLs) with InterDev
Some projects in order to improve the speed of the Web page, optimize the Web page structure, will be a number of common operations encapsulated into the DLL (or nausea to be forced to use the encapsulation of the DLL method in the ASP program design embodies the idea of OOP), after registering on the server, you can call the DLL methods or properties
Here we discuss the use of VB (cooked) encapsulated DLLs. Encapsulation of the DLL in the end can not be used, or is not to achieve the expected effect, this is not in VB can be fully seen, and sometimes we debug the ASP page, but also want to follow the inside of the DLL to see whether the expected process to implement the function of the DLL. At this point, we need to use InterDev and Visual Basic for joint debugging, and here's how:
First, set up IIS
It's iis! again.
Referring to the 2nd of the "Setting up the IIS debugging Environment" above, in properties, in the Directory tab, set the application protection to: high (independent). Then, in the Directory Security tab, click the Edit button in the anonymous access and authentication control block to remove the top-most anonymous access in the pop-up authentication Methods page, which is to prevent anonymous access. The reason for this is that VB itself prohibits anonymous users from making calls to their processes, which can be invoked by the system user (Administrator or iuser_xxxxxx).
Second, open VB, in VB open to debug the project file of the DLL, set the necessary breakpoints, and then run the project. Then Open InterDev, set a breakpoint before calling the ASP statement to the method of the DLL, and then start running the project. At this point when the page executes to the ASP breakpoint, and then take a step forward, the system directly into the debugging of VB. At this point, the equivalent of running VB replaces the registered DLL file.
If this method can let everyone in the debugging can stop at the breakpoint, then it shows that my language level is still possible, we all understand ~ ~ Hope to have more exchanges with you!