Is there asm nop equivalent in java?

前端 未结 5 1844
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-18 17:48

When I program C/C++ with Visual Studio I often use __asm nop; command to insert a noop code in order to have something to break on. For instance:

5条回答
  •  攒了一身酷
    2020-12-18 18:29

    I'm separating this into a new answer because I'm surprised no one has said this, yet. Modern IDEs let you add logic to breakpoints! Instead of compiling a dedicated if statement just for debugging, place the breakpoint somewhere you actually care about, then right-click it and select Breakpoint Properties!

提交回复
热议问题