How to set a breakpoint in Eclipse in a third party library?

前端 未结 6 1702
无人及你
无人及你 2020-12-01 00:08

I\'m getting a NullPointerException in a Class from a 3rd party library. Now I\'d like to debug the whole thing and I would need to know from which object the class is held.

6条回答
  •  长情又很酷
    2020-12-01 00:28

    Normally, you should be able to set a break point. Especially if the 3rd party library is open source. But if your 3rd party lib is from a commercial vendor, they may have compiled the source with the debug flag turned off. This will make it impossible for you to debug into it. Your vendor might have done this as part of an obfuscation process to make it impossible to reverse engineer the library, or just simply because the final compiled classes will be smaller.

提交回复
热议问题