最近在idea 上进行remote debug的时候总是出现Source code does not match the bytecode,现记录原因
首先看现象
原因如下,idea在remote debug的时候因为我打开的工程中有两个moudle里具有相同的类名,然后ideadebug进入了错误的类所以导致首先看现象Source code does not match the bytecode
解决方案
在remote debug设置中设置use module classpath为对应的项目即可
其他情况所致的Source code does not match the bytecode
直接mvn compile重新编译即可