eclipse中debug总是调试的是上一个debug的main函数

先检查低级错误,自信点的可以不检查(^|-|^)

1.有可能main写成了mian

2.主函数是不是忘了写string []args;

3.忘记加static修饰

那些低级错误是不会有的,如果一个包里面有多个main函数,他就会执行上次你debug的main函数,这是一个不咋靠谱的人和我说的,直接上解决方法吧:

right click the class that you want to debug => debug configrations => main => determine the project and main class 

猜你喜欢

转载自blog.csdn.net/qq_52317104/article/details/121170365