如何解决在IDEA中Debug时出现了"Source code does not match the bytecode"警告

今天,在IDEA中进行debug代码测试时,出现了"Source code does not match the bytecode"字样,翻译下来其实是“源代码与字节码不匹配”。
经过百度查询,原因是你的代码更改添加了,但是并未重新编译一下,所以添加的代码idea就探测不到,只需要重新debug restart一下/Build Project,即可解决。

from lj 2020-10-30

你可能感兴趣的:(如何解决在IDEA中Debug时出现了"Source code does not match the bytecode"警告)