Bug 185152 - [partial patch] Add File, Target and Task breakpoints
Summary: [partial patch] Add File, Target and Task breakpoints
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-02 11:32 EDT by Pascal Rapicault CLA
Modified: 2019-09-06 16:06 EDT (History)
2 users (show)

See Also:


Attachments
Patch to ant ui (21.82 KB, patch)
2007-05-02 11:33 EDT, Pascal Rapicault CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Rapicault CLA 2007-05-02 11:32:20 EDT
Here is a contribution that adds to the eclipse ant support three new kinds of breakpoints:
- File breakpoints: The goal of this breakpoint is to catch all calls to a file. This can be useful to know whether or not a file if being used during a build.
- Target breakpoints: This is used to stop on a target with a given name (this is not bound to a file). For example in PDE Build we can use that to see all the calls to a wellknown target that is available in all the build scripts generated
- Task breakpoints: This will stop on any invocation of a given task. For example catch all calls to mkdir.

The only problem with this contribution is that it does not have any UI counterpart, and I don't really see how this can be made without polluting the breakpoint view. I will open another bug on that topic.
Comment 1 Pascal Rapicault CLA 2007-05-02 11:33:34 EDT
Created attachment 65624 [details]
Patch to ant ui 

Note that this patch has not been tried against with the remote ant logger.
Comment 2 Pascal Rapicault CLA 2007-05-02 11:42:17 EDT
I have opened bug #185154 for the UI integration.
Comment 3 Pascal Rapicault CLA 2007-05-28 09:39:03 EDT
While using the patch I realized that it is not fully functional since hitting "play" once a target breakpoints has been encountered will cause the debugger to halt on the next line of the target.
Comment 4 DJ Houghton CLA 2008-04-01 11:48:00 EDT
This would be cool and really help people debugging things like ant-based build scripts. ;-)
Comment 5 Eclipse Webmaster CLA 2019-09-06 16:06:34 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.