user1986658
user1986658

Reputation: 11

How to use NetBeans debugger with JRebel

I recently installed the JRebel plugin for NetBeans and have noticed the following problem when debugging within the IDE:

If I set a breakpoint in a class and change the code afterwards, then my debugger doesn't always hit the breakpoint. I found a workaround: resetting the breakpoint (or reattaching the debugger to project) after reloading the class.

But this solution is not perfect because class is reloaded when app needs it for the first time(debugger doesn't work yet) so I have to make some action which I want to debug two times which can cause so many problems. Another thing is what I can't explain at all.. even when I hit the breakpoint with success, I can't hit another one in another class.

Maybe someone has figured this issue out - ? Is there a way to reload changed classes on save?

NetBeans 7.2.1 with JRebel plugin, Glassfish 3.1.2

Upvotes: 1

Views: 1052

Answers (1)

Anton Arhipov
Anton Arhipov

Reputation: 6591

This is a known issue. The solution exists but not released yet.

Also, please check Options->Java->Java Debugger. Is the "Apply code changes after save" checkbox enabled? If not, could you enable it and try in this configuration - will it make any difference?

Upvotes: 2

Related Questions