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 79336 - Ant debugger stops on disabled breakpoints
Summary: Ant debugger stops on disabled breakpoints
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Ant (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks: 79061
  Show dependency tree
 
Reported: 2006-06-28 14:11 UTC by Jiri Kovalsky
Modified: 2006-10-23 15:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The NPE I got in console. (1.12 KB, text/plain)
2006-06-28 16:51 UTC, Martin Entlicher
Details
The textual diff of the fix. (717 bytes, text/plain)
2006-06-30 12:39 UTC, Martin Entlicher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2006-06-28 14:11:32 UTC
Development build #200606271800 of NetBeans 6.0
Windows XP, JDK 1.5.0_05 build #05 or JDK 1.6.0 RC build #87

Description:
============
In spite of disabled breakpoint in my build script Ant debugger ignores it and
stops at appropriate line when the breakpoint is hit.

Steps to reproduce:
===================
1. Download and unzip build scripts from here:
http://qa.netbeans.org/modules/debugger/promo-f/build-scripts.zip
2. Mount directory with the two XML files in Favourites view.
3. Open build.xml file and toggle breakpoint at line 12.
4. Invoke "Window|Debugging|Breakpoints" from main menu.
5. Right click the breakpoint and choose "Disable" from its popup menu.
6. Right click build.xml filenode and invoke "Debug Target|Other Targets|run".
7. Once debugger stops at line 5 invoke "Run|Continue" from main menu.
8. Debugger goes on until it stops at line 12.
Comment 1 Martin Entlicher 2006-06-28 16:51:05 UTC
Reproduced. Interestingly, I got a NPE in the console, which probably caused the
debugger to stop inside the imported file.
Comment 2 Martin Entlicher 2006-06-28 16:51:57 UTC
Created attachment 31479 [details]
The NPE I got in console.
Comment 3 Martin Entlicher 2006-06-28 17:04:14 UTC
Oops, this belongs to issue #79341! Please ignore my last message and the
attachment.
Comment 4 Martin Entlicher 2006-06-28 17:14:36 UTC
Reproduced. Starting to work on it....
Comment 5 Jiri Kovalsky 2006-06-28 19:17:00 UTC
Please note that this is M1 blocker issue and should be fixed by this Friday -
June 30, 2006.
Comment 6 Martin Entlicher 2006-06-29 14:28:21 UTC
Fixed in trunk:

/cvs/ant/debugger/src/org/netbeans/modules/ant/debugger/AntDebugger.java,v  <--
 AntDebugger.java
new revision: 1.12; previous revision: 1.11
Comment 7 Jiri Kovalsky 2006-06-30 12:09:01 UTC
Verified in development build #200606291800 of NetBeans 6.0. Could you please
backport the fix to release55 branch too ? Leaving as fixed but changing "Target
milestone" to TBD.
Comment 8 Martin Entlicher 2006-06-30 12:39:01 UTC
Created attachment 31544 [details]
The textual diff of the fix.
Comment 9 Martin Entlicher 2006-07-03 14:54:18 UTC
The fix is backported into release55 branch:

/cvs/ant/debugger/src/org/netbeans/modules/ant/debugger/AntDebugger.java,v  <--
 AntDebugger.java
new revision: 1.2.38.1.2.2; previous revision: 1.2.38.1.2.1
Comment 10 Jiri Kovalsky 2006-07-24 13:26:29 UTC
Verified in NetBeans 5.5 Beta 2 build #200607190830.