A breakpoint is a place where the execution stops, and you can start inspecting the current situation in your debugger. This includes:
- the point has actually been reached
- the current values of all variables
- the ability to change manually all variables
- the current stacktrace - i.e. which methods were executed before the current one
- the ability to add and execute arbitrary code
- the ability to inspect the results of a method invocation, while not actually proceeding with the execution
除此以外,你还可以按照申请的路线,以人工方式向前迈进。 有三个选择:
- step into - enters a method which is invoked in the current line
- step over - goes to the next line
- step return - returns from the current method (to the method that invoked it)
如果你有希望做上述任何事情的多个地方,你可以设定多个突破点。
一般说来,变相器是一种非常升级的版本,使用<编码>系统.out.println(或log.debug(.)
全处,以确保具备某些条件。 (这一点与俾路支省的情况一样)