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 69403 - Cannot set breakpoint
Summary: Cannot set breakpoint
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@debugger
URL:
Keywords: T9Y
Depends on: 69633
Blocks:
  Show dependency tree
 
Reported: 2005-11-27 19:48 UTC by Martin Schovanek
Modified: 2006-06-30 12:37 UTC (History)
3 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 Martin Schovanek 2005-11-27 19:48:16 UTC
[#200511231900, jdk1.5.0]

to reproduce:
-------------
1) clean project
2) open a .java (.jsp, ...)
ERROR: cannot set breakpoint, Toggle Breakpoint and Run to Cursor actions are
disabled.

Reproducible in J2SE, Web, ... projects.
Comment 1 _ lcincura 2005-11-28 10:27:09 UTC
I cannot reproduce it in build 200511271900

Steps used:
1) start with clean userdir
2) create sample project AnagaramGame
3) open any .java file
4) set breakpoint
These steps works also with TomcatJSPExample project.
Comment 2 Martin Schovanek 2005-11-30 11:22:59 UTC
You are right, it is hard to reproduce by the previous steps.

better steps to reproduce (thanks to Libor):
1) create new Web project
2) set a breakpoint in index.jsp
NOTE: the brakpoint is correctly toggled 
3) click WEB-INF node in the Explorer view
4) click index.jsp
ERROR: cannot set breakpoint, Toggle Breakpoint and Run to Cursor actions are
disabled.


Or in J2SE project:
1) open a .java
2) click the .java's package node
3) click the .java node in the Explorer view
...
Comment 3 Libor Kotouc 2005-11-30 12:13:41 UTC
TopComponent.getRegistry ().getCurrentNodes () returns old value in time of
calling toggle breakpoint action providers.
Comment 4 Libor Kotouc 2005-11-30 14:05:38 UTC
Fixed.

Checking in EditorContextImpl.java;
/cvs/debuggerjpda/ant/src/org/netbeans/modules/debugger/projects/EditorContextImpl.java,v
 <--  EditorContextImpl.java
new revision: 1.22; previous revision: 1.21
done
Comment 5 Libor Kotouc 2005-12-02 09:53:39 UTC
Rollbacking due to the issue 69633.

Checking in EditorContextImpl.java;
/cvs/debuggerjpda/ant/src/org/netbeans/modules/debugger/projects/EditorContextImpl.java,v
 <--  EditorContextImpl.java
new revision: 1.23; previous revision: 1.22
done

The fix (or similar one) can be re-applied after the blocking issue is fixed.
Comment 6 Libor Kotouc 2005-12-02 13:47:48 UTC
Fixed after issue 69633 was fixed.

Checking in EditorContextImpl.java;
/cvs/debuggerjpda/ant/src/org/netbeans/modules/debugger/projects/EditorContextImpl.java,v
 <--  EditorContextImpl.java
new revision: 1.24; previous revision: 1.23
done

Patch modified as jtulach suggested in the issue 69633.
Comment 7 Libor Kotouc 2005-12-05 14:53:39 UTC
Version 1.24 was rollbacked to 1.23 again due to broken commit validation. New
version is 1.25.
CV is now fixed, thus committing once again:

Checking in EditorContextImpl.java;
/cvs/debuggerjpda/ant/src/org/netbeans/modules/debugger/projects/EditorContextImpl.java,v
 <--  EditorContextImpl.java
new revision: 1.26; previous revision: 1.25
done
Comment 8 Martin Schovanek 2006-06-30 12:37:58 UTC
v.