idea相同文件名,在debug时源码对不上
是这样,在一个project下面两个不同的module,这两个不同的module都各自有一个叫StudentService的类,我现在在debug时idea自动跳到另个module里面的StudentService了,我记得第一次debug时好像idea让我选择到底应该debug那个类,我选错了,我该怎么改回来呢?
在debug时提示“source code does not match the bytecode”
解决
File -->Settings -->Debugger ,勾选Show alternative source switchwer
查看变量的值
找开Evaluate Expression 窗口 Ctrl+U(使用eclipse) Alt+F8(使用default)
编辑变量的值
debug模式启动不起来
有可能是断点打在了 方法上了 查看断点
把这个方法上的断点去掉就可以了