/**
* debug调试:
* StepOver(F8):逐行一次执行一行调试
* StepOut(Shift F8):终止调试
*Force StepInto(Alt Shift F7):进入java底层方法中
*StepInto(F7):进入到调用的自己写的方法中
* F9直接从自己的方法中终止调试
*/
public class DebugDemo {
public static void main(String[] args) {
int a = 9;
int b = 3;
int c = a/b;
System.out.println(c);
DebugDemo.test(9,0);
}
public static void test(int a,int b){
System.out.println(a/b);
}
}
注意:个人电脑其他软件也有快捷键,所以可能会存在使用快捷键时出现其他情况,找到相应设置进行修改即可。