idea debug jdk
2018-12-08 本文已影响0人
黄德辉
有时候因为学习的需要,我们需要去查看jdk的一些源代码,
如图 HashSet 集合的源码分析:

但是很多同学可能会发现,我们打了源代码的断点是无效的,这里我们要对idea进行一下断点调试的设置在:点击Setting –> Build,Execution,Deployment –> Debugger –> Stepping
把Do not step into the classes中的ajva.,javax.取消勾选:

这样就能随心所欲的进行源代码的调试与解析了。