Java EE application Development general Debugging Summary

Source: Internet
Author: User

In the debug category I share my previous debugging summary, after a few months, after this period of reflection, I summed up the Java EE Application development of a general idea, for reference only, welcome to share the discussion.

At present, most applications are browser/server mode, then development is divided into two parts, that is, the public said the foreground (assuming the use of rich client framework development (EXTJS, easyui===) and backstage, for an application, Server is the content core (Web application is the core of the content provider), so the program run abnormal situation, then the first check is the background is not correct to query the required data, in the foreground there is no return and background query data, this time debugging focus fell on the front desk, The assumption is that the foreground control (common DataGrid, tree) parsing data, then the general situation may be the data structure problems, data structure is the interface of program interaction, if you are familiar with the data structure of the control, the first step is to check the structure of the returned data, if the data structure is not a problem Then the problem may appear on the data, generally, the background data returned by the HTML elements, it is very likely to disrupt the original control's DOM structure and CSS rendering effect. There are also situations where the control is otherwise handled by itself. If you do not know the format of the control data, there can be a most common way, that is, the comparison of the wrong method, this method million test million, that is, the normal operation of the operation with the abnormal performance of the comparison, here need to be careful and patient. Reducing replication stickiness reduces the number of bugs that are more hidden in specific code in a particular environment.

Although it sounds very simple, but I found that many times when I am in the debugging will not follow this thinking to debug, a lot of time is a random guess, is not this. Is that. Crashing around like a headless fly. On the philosophy above, theory guides practice, Practice perfect theory, I believe that even the rough theory is better than the practice of guessing.

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.