This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 34140 - Cannot fix code during debug session
Summary: Cannot fix code during debug session
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P1 blocker with 1 vote (vote)
Assignee: issues@debugger
URL:
Keywords:
: 34464 34535 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-06-04 10:15 UTC by aaime
Modified: 2006-06-03 23:05 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aaime 2003-06-04 10:15:38 UTC
The fix button in never enabled during the debug
session... why? Using 3.5rc3 on j2sdk1.4.1_02.
Comment 1 aaime 2003-06-10 09:36:43 UTC
The problem is still there in 3.5 final. The fix button
in the debugger toolbar is not enabled when I change
some code. I'm pretty sure I can reproduce this problem
on every GUI file written using the form builder.
Comment 2 aaime 2003-06-10 09:41:15 UTC
And to complete the context specification, the file I'm working on are
on a "view over filesystem"
Comment 3 Martin Grebac 2003-06-19 07:40:23 UTC
*** Issue 34464 has been marked as a duplicate of this issue. ***
Comment 4 Martin Grebac 2003-06-19 07:48:43 UTC
Changing priority, because the 'Fix & Continue' feature does not work
at all.
Comment 5 Milan Kubec 2003-06-25 12:31:29 UTC
Please could you evaluate those P1 prio bugs. Thanks.
Comment 6 sebastianm 2003-06-25 12:46:37 UTC
I agree, please do something to fix this issue. This bug is the *only*
reason for me not to use 3.5. I have reverted to 3.4 but I miss a lot
of the fixed bugs (especially better code completion) from 3.4 .
I am using the 3.5 release on 1.4.1_01 and Redhat 8.0

Evaluation: I disagree with Martins statement, the feature does not
work at all. For me it worked sometimes during debugging, but after
having fixed a couple of classes (the button *was* enabled and it
worked), the only thing that happened when i tried to fix another
class was that according to the debugger output the classes i had
fixed earlier were fixed again, although the source had not changed
again. But until the next debugging session i could not manage to fix
any further classes. Unfortunately i cannot reproduce this behavior
anymore because now i am experiencing the same problem as the OPs :
the button is not enabled anymore.
Therefore i think there is a problem with the state keeping and
propagation of "dirty" sources.

Hope this helps and thanks in advance to anybody who tries to fix this
truely severe issue.
Comment 7 Milan Kubec 2003-06-25 13:07:16 UTC
*** Issue 34535 has been marked as a duplicate of this issue. ***
Comment 8 sebastianm 2003-07-01 10:26:06 UTC
Excuse me if this is a dumb question, but is there anyone out there
using the Netbeans 3.5 Debugger successfully at all?! I have seen 3
installations of Netbeans 3.5 (2 on Unix and 1 on Windows), the fix
button never worked. Am I the only one experiencing these problems? If
not, why isn't this issue addressed by anyone. The 3.5 release version
is useless without this feature compared to 3.4 for anyone who uses
the debugger seriously (which should be most of the users, otherwise
they should continue to use emacs or notepad). 
Sorry if this sounds a bit rude, but I am really disappointed. I
thought that this would be fixed in no time, but the community seems
to be too small to address even the most important bugs (this one was
introduced between the last two release candidates! it used to work
perfectly!).
I know it is not fair blaming other people; I tried to fix it myself,
but this was the first time I took a look at the debugger module's
source code and it was just too much code. If I had to fix it it would
take me weeks of work to understand the current codebase. There must
be someone in the community who is familiar with the code.

Please, someone who is familiar with the codebase, evaluate this
problem, you could make a lot of people very happy users.

Looking at the target milestone is just too frustrating...
Comment 9 kovica 2003-07-01 12:42:49 UTC
No.
You are NOT the only one. I've experienced debugger freeze, not
showing right values in watches, ...
Debugger freeze is described in issue 34693.
Comment 10 aldobrucale 2003-07-01 18:09:42 UTC
It used to work until 3.5 RC1 or maybe even RC2, but I 
can't find the release candidates in the web site. Any clue?
Comment 11 Milan Kubec 2003-07-02 10:01:56 UTC
It seems that the functionality broke between release35 RC2 and RC3.
Comment 12 Milan Kubec 2003-07-02 10:38:09 UTC
In nevada release it broke between RC5 and RC6.
Comment 13 Milan Kubec 2003-07-02 12:42:27 UTC
This regression was probably introduced by fix of #27024.
Comment 14 Jan Jancura 2003-07-02 16:43:25 UTC
fixed in main trunk
Comment 15 Jan Chalupa 2003-07-03 08:58:34 UTC
Good to hear. Where is the diff?
Comment 16 sebastianm 2003-07-03 12:56:03 UTC
first of all thank you very much for fixing this issue.

@Jan Chalupa:
just check out the module and create a path for the current
jpdaDebugger, it's really easy. I had never done this before, but the
documentation for doing this is very good. (Looking at the code the
diff should be in JPDADebugger.java (the 
very last line of code seemed to have been commented out during the
fix of #27024 - don't ask me why!)):
this.setDataObjectToFix();

@all:
I think there is still one subtle difference to the previous (3.4)
behavior:
when I fixed a class the button is still enabled (which is no problem
but it would be clearer if it was disabled again) but pressing the
button again fixes the class once again although it is not needed.
this wouldn't be too much of a problem unless your are debugging a
method and the debugger is paused, because pressing the fix button
brings up the dialog which asks you whether you want to pop the call
or leave it on the stack, which can be quite annonying.
Comment 17 aaime 2003-07-04 08:12:58 UTC
I really hope that an upgrade with be soon available on the
Netbeans update center because for many people this feature is
important and we all know how much time was required to get 3.4.1 out
(that is, I think that waiting a couple of months to see this fixed in
a 3.5.x is too much). Just an opinion... otherwise in a short time
I'll have to either go back to 3.4.1 or to use a Q-build...
Comment 18 brviking 2003-07-04 22:15:40 UTC
Please, create an AutoUpdate emergency fix, or put avaliable the
correct .jar to fix this. Not all people (like me) has knowledge to
compile NetBeans to make things working...

NetBeans is the best IDE avaliable, put no debug is boring!

My2c.
Comment 19 Milan Kubec 2003-07-09 08:54:29 UTC
Verified in dev-200307090100. I'll file another issue for the 'Fix'
button beeing still enabled.
Comment 20 aaime 2003-07-19 15:01:22 UTC
Sorry to ask again, but the fix doens't seem to be included in the 3.5.1 
RC... please someone prepare an update center module with the fix :-( 
Comment 21 couellet 2003-07-24 19:57:12 UTC
FYI the fix button sometimes works for me, but there 2 very annoying
problem.

1- you need to put the focus in a code window before attach, or you
will to do it and reattach.

2- sometimes you cannot fix more than one class per debug session,
again you need to reattach to make it work.
Comment 22 Jan Jancura 2003-07-25 15:26:40 UTC
I have added this fix to release35_fixes branch.
It should be available on autoupdate soon.
Comment 23 brviking 2003-07-31 19:35:06 UTC
Still broker in 3.5.1 final release?
Comment 24 couellet 2003-08-11 15:38:01 UTC
Any estimates as when the fix will be available?  In which forms is it
downloadable? Or how can I use autoupdate to download the fix?
Comment 25 Antonin Nebuzelsky 2003-11-04 14:55:23 UTC
Fixed also in Nevada Patch 1 and in Arrow.