Yuxi java Training School tells you how software developers solve bugs.

Every software developer will encounter a bug. What is this? When software developers can test standards, the problems they find become bugs. So what are the ways to solve bugs? Computer training/suggestion First, software developers need to know how to locate quickly, and then modify the program.

First, breakpoint debugging:

1, breakpoint: breakpoint, clear breakpoint.

2. There are two ways to start the debugging mode: one is to start the debugging program through debugas; Second, when the program is running, select the program to be debugged in DDMS view and start the debugging mode.

3. Debugging: You can use F5, F6, F7 and F8 shortcut keys.

4. View member variables through monitoring.

Second, print debugging:

? Print debugging is very effective for loop, JNI and other code segments, and it is more and more useful when looping.

Third, the visual method:

? Codereview is applicable, but it is artificial after all. There is a problem with one more point, but it is very useful when the amount of code is small.

Fourth, automated testing:

? Automated testing tools for Android program development include: monkey, Robotium, Appium and cloud testing.

Verb (abbreviation of verb) exclusion method:

? When you encounter random problems, you can use the exclusion method to test them. First, you can roughly locate the problem point, and then use the code to comment on the changes and gradually narrow the scope of the problem.