断点(break point)的种类
1 静态 static
Set directly into a program's code with the Editor. Static breakpoints are generally
user-independent. You can also set user-dependent static break points.
2 动态 dynamic
Set from within the ABAP Editor or the Debugger. Dynamic breakpoints are invisible
when you display the program's code in the Editor.
3 watchpoints
Set from within the Debugger. Watchpoints are field-specific. You use a watchpoint to
observe changes to a particular field. The Debugger interrupts the program when the
field's contents change.You can only set one watchpoint at a time.
4 Key Word or Event Breakpoints
Set from within the Debugger. The Debugger interrupts the program when the ABAP
runtime processor comes across the specified keyword or event in the program's
code.
断点的使用:
1 静态断点 static breakpoint
Static breakpoints are generally user-independent. Once a static breakpoint is set, every user who executes the program encounters the breakpoint. You should use static breakpoints if several developers are working on the same program and all of them want it to be interrupted at the same place during each execution. Static breakpoints are visible in the program's code. If it is important that you always see the breakpoints, then you should use static instead of dynamic breakpoints.
2 动态断点 dynamic breakpoint
Dynamic breakpoints are user-specific. If you want to interrupt a program when you execute it, but not when others are running it, then you should set dynamic breakpoints. Dynamic breakpoints are more flexible than static breakpoints, because they can be removed or deactivated during runtime. You can set dynamic breakpoints without making any changes to your program's code. If you want to debug a program that is locked by another developer's change task, you can do so by setting dynamic breakpoints.
3 watchpoint
You can set watchpoints only from within the Debugger. They are useful if you want to interrupt a program only when there is a change in the contents of a particular field or field string. You can set and remove watchpoints as needed. As with dynamic breakpoints, watchpoints are user-specific and do not disturb other users executing the program.
4 keyword or events
From within the Debugger, you can allocate breakpoints for specific ABAP key words or program events. This feature is useful if you do not know exactly where a key word or event occurs, but still want the program to be interrupted just before the command or event is carried out. As with watchpoints, breakpoints at key words or events are user-specific and can only be set from within the Debugger.