Code debugging and problem analysis

1: Open our project, and then make a breakpoint on a piece of code in PeopleServlet and enter debug mode:

 

 2:

 

 3: When our breakpoint hits the for loop but we can't get out, but we just want to look at the field name on line 66 of the database

 

 

 

 

Then we will cancel the other breakpoints and make a breakpoint in obj, then click the reverse key and enter:

 

 At this time you can see:

 

 Then re-enter debug:

 

 

 

 

 

 

 

 

4: When multiple methods are nested, then we want to find the value obtained by a certain method under debug:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PeopleServlet

Guess you like

Origin www.cnblogs.com/dabu/p/12707503.html