AEAI DP Debug Mode description

Source: Internet
Author: User
Tags apache tomcat

1. Overview

program debugging is a very necessary function in the process of mis-locating complex business logic, and debugging can make programmers have a better understanding of the program, which is a basic skill for programmers. MISCDP Debugging is divided into two kinds, one is remote debugging, one is local debugging. This document explains how each of these two debugging methods is used.

2. Prospective Readers

This document is intended primarily for software developers and testers who are training or have already trained in the use of the platform. As an extension of the technical manual for training, you can supplement the technical manual with regard to commissioning.

3. Remote Debugging

with remote debugging, you need to use Hotserver Server. At the command prompt, enter hotserver 's bin directory, enter Startup.bat, add a space, and then add the parameter -D, which is "startup.bat-d ", enter execution. hotserver the default remote debugging port is 6767,the Portal default remote debugging port is 8787.

Switch to Java Perspective, and then click run-->debugconfiguration,2-1:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/57/A7/wKiom1ShD2aCAa_YAACccpoK-00340.jpg "title=" 1.png " alt= "Wkiom1shd2acaa_yaacccpok-00340.jpg"/>

Figure 2-1

Click to eject the 2-2 window:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/57/A7/wKiom1ShD8yhBQqPAALTXCg7r7c413.jpg "title=" 2.png " Width= "height=" 480 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:600px;height:480px; "alt=" Wkiom1shd8yhbqqpaaltxcg7r7c413.jpg "/>

Figure 2-2

Select the Remotejava application", then click on the upper left corner 650) this.width=650;" Src= "http://s3.51cto.com/wyfs02/M01/57/A4/ Wkiol1shejzipotdaaaf4k_wuba328.jpg "title=" 3.png "alt=" wkiol1shejzipotdaaaf4k_wuba328.jpg "/> icon, showing 2-3 the interface:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/57/A4/wKioL1ShEbDg4684AAL0AmGEZ1k392.jpg "title=" 4.png " Width= "height=" 480 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:600px;height:480px; "alt=" Wkiol1shebdg4684aal0amgez1k392.jpg "/>

Figure 2-3

In figure 2-3 ,the position of (1) is modified to the name of the file where the breakpoint is being debugged so that the breakpoint location is recorded. (2) Select the item you want to debug by clicking the Browse button. (3) the position needs to be adjusted, the port is adjusted to 6767, and finally click Apply to complete the configuration. Then make the Hotserver in debug mode, click the Debug button, start debugging.

Debugging Situation 2-4:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/57/A7/wKiom1ShERqSSmfiAAmHCALdz9A621.jpg "title=" 5.png " Width= "height=" 337 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" WIDTH:600PX;HEIGHT:337PX; "alt=" Wkiom1sherqssmfiaamhcaldz9a621.jpg "/>

Figure 2-4

    1. < Span style= "font-family: ' The song Body '; > Click to go inside the method to continue execution, shortcut key f5

    2. Click to continue execution down line, Do not enter the specific method, shortcut key f6

      Ps: for the Bounce method, f8

    3. There are two ways to view the value of the current variable, one is to see the upper-right corner, and the other is to hover over the variable you want to see and display the value of the current variable. , the current string operatype insert

4. Local debugging

using local debugging, you need to use the Tomcat Server. Start by creating a new Server, as shown in method 3-1:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/57/A7/wKiom1ShEZKg2m5-AAE1ZqtQ8cg223.jpg "title=" 6.png " alt= "Wkiom1shezkg2m5-aae1zqtq8cg223.jpg"/>

Figure 3-1

first click 650) this.width=650; "Src=" http://s3.51cto.com/wyfs02/M01/57/A4/wKioL1ShElPgOI4GAAAIBet-Ie0377.jpg " Title= "7.png" alt= "wkiol1shelpgoi4gaaaibet-ie0377.jpg"/> The New button, the 3-1 dialog box pops up. Select Serverand select Next. Then it becomes the 3-2 dialog box. Note that the middle position here is to select Apache tomcat Server, which can be selected as needed, and we set this to the Tomcat v7.0 server version. The first configuration requires the location of Tomcat to be configured . Click on the Next button,as shown in 3-3 :

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/57/A7/wKiom1ShEcuBGfLHAAH38sRuKgo841.jpg "style=" width : 300px;height:341px; "title=" 8.png "width=" "height=" 341 "border=" 0 "hspace=" 0 "vspace=" 0 "alt=" Wkiom1shecubgflhaah38srukgo841.jpg "/>650) this.width=650;" Src= "http://s3.51cto.com/wyfs02/M00/57/A4/ Wkiol1shen7wk0rwaafz-02-zck830.jpg "style=" width:300px;height:341px; "title=" 9.png "width=" height= [341] Border = "0" hspace= "0" vspace= "0" alt= "wkiol1shen7wk0rwaafz-02-zck830.jpg"/>

Figure 3-2 Figure 3-3

Click Browse button, locate the Hotserver directory, OK, click Next. Here to add the project you want to debug, of course, you can wait to add later. as shown in 3-4, click Finishto complete the configuration.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/57/A7/wKiom1ShEfyxT3djAAF7HUi_u_Y137.jpg "title=" 10.png "Width=" "height=" 511 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:450px;height:511px; "alt=" Wkiom1shefyxt3djaaf7hui_u_y137.jpg "/>

Figure 3-4

Note the following A Perspective view of the Server. You can see that we have created a good Tomcat v7.0 server. as shown in 3-5:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/57/A7/wKiom1ShEhPCsb77AACCvvAG-bM456.jpg "title=" 11.png "alt=" Wkiom1shehpcsb77aaccvvag-bm456.jpg "/>

Figure 3-5

Double click Tomcat directory, pop up its configuration file, note here the Timeout at the two values to adjust a little bit larger, I have been transferred to the ten . Server Locations to select the middle option. as shown in 3-6, do not forget to save after Setup is complete.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/57/A4/wKioL1ShEteyWbHxAAVsUKOlec4155.jpg "title=" 12.png "Width=" "height=" 287 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" WIDTH:600PX;HEIGHT:287PX; "alt=" Wkiol1sheteywbhxaavsukolec4155.jpg "/>

Figure 3-6

If you want to debug a program, right-click Tomcat directory, select the Debug option. as shown in 3-7:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/57/A4/wKioL1ShEvfQlIZ2AAD_nPWR3Bg059.jpg "title=" 13.png "alt=" Wkiol1shevfqliz2aad_npwr3bg059.jpg "/>

Figure 3-7

This is where you can see the boot on the console a variety of information about Tomcat. 3-8:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/57/A7/wKiom1ShElbzpmxoAAOHYHfp2LY513.jpg "title=" 14.png "Width=" "height=" 179 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" WIDTH:600PX;HEIGHT:179PX; "alt=" Wkiom1shelbzpmxoaaohyhfp2ly513.jpg "/>

Figure 3-8

after the startup is complete, the state of the Server has become the Debug mode,3-9:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/57/A7/wKiom1ShEm2zGo25AAB0PcTL0z4656.jpg "title=" 15.png "alt=" Wkiom1shem2zgo25aab0pctl0z4656.jpg "/>

Figure 3-9

at this point, you can set breakpoints, and remote debugging the same, do not repeat. Finally, in the left-hand project bar, find the project where you set the breakpoint, right click, find Debug as, select Debug on Sever. You will be able to debug your program,3-10 and 3-11.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/57/A4/wKioL1ShEzOjcIFHAAOOMbS_Lto380.jpg "title=" 16.png "Width=" "height=" 536 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:600px;height:536px; "alt=" Wkiol1shezojcifhaaoombs_lto380.jpg "/>

Figure 3-10

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/57/A7/wKiom1ShEpWhu6NhAAHWN16SChU956.jpg "title=" 17.png "alt=" Wkiom1shepwhu6nhaahwn16schu956.jpg "/>

Figure 3-11

Note The contents of Figure 3-11 , we can click on the Finish directly here, because we have already selected the corresponding project. If not set at the beginning, you can also click the Next button here to configure. as shown in 3-12, this is the interface after clicking Next and can be reconfigured here.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/57/A7/wKiom1ShEsDiMtUpAAGJblVnhT4246.jpg "title=" 18.png "alt=" Wkiom1shesdimtupaagjblvnht4246.jpg "/>

Figure 3-12

Click after Finish, the browser is opened automatically. This is the same as remote debugging, but it is important to note that all the server information needs to be seen in the console view,as shown in the 3-13, you can see that the black Word shows the server information.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/57/A7/wKiom1ShEtXSJ_p4AAMsKL6eTDA489.jpg "title=" 19.png "Width=" "height=" 227 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" WIDTH:600PX;HEIGHT:227PX; "alt=" wkiom1shetxsj_ P4aamskl6etda489.jpg "/>

Figure 3-13

we continue to operate, when running to the breakpoint, will automatically jump to the interface of the designer, display debugging content, 3-14, here and the use of remote debugging is the same, but the server information, can be directly in the bottom of the console interface to view, do not need to switch to Hotserver the page.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/57/A4/wKioL1ShE56hahC2AAtt2c1YL58655.jpg "title=" 20.png "Width=" "height=" 337 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" WIDTH:600PX;HEIGHT:337PX; "alt=" Wkiol1she56hahc2aatt2c1yl58655.jpg "/>

Figure 3-14


Aeai DP Debug Mode description document Download


This article is from the "Digital unobstructed portal Integration Platform" blog, please be sure to keep this source http://aeaiportal.blog.51cto.com/9300497/1597356

AEAI DP Debug Mode description

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.