Is it possible to set breakpoints at a specific by

2019-08-09 08:19发布

I'm using jdb to remotely debug a Java application of which I don't have the source code. Furthermore, the application jars are obfuscated.

I can set method breakpoints but, is it possible to set breakpoints at a specific bytecode instruction within a method? The idea I have is to use some disassembler like javap to identify the interesting instructions.

Can jdb or other Java debugger do this?

1条回答
ら.Afraid
2楼-- · 2019-08-09 09:16

You need line numbers to breakpoint on (something I assume has been removed). You can artificially add line numbers to the file using instrumentation and you will be able to breakpoint at every instruction if you wish.

查看更多
登录 后发表回答