Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Source lookup doesn't work when debugging a fragment
Source lookup doesn't work when debugging a fragment [message #331324] Mon, 01 September 2008 14:50 Go to next message
Eclipse UserFriend
Originally posted by: jamesblackburn+eclipse.mac.com

Hi All,

I've created a fragment which overrides existing platform functionality.
I've added the fragment's jar to the plugin's Bundle-ClassPath and
Eclipse-ExtensibleAPI: true

The code builds and runs as expected - I can verify that my code is
being called. However if I set a breakpoint, the source shown is for
the original plugin, not the fragment (line numbers etc. are out of whack).

In the Debug View's Source Lookup path, the Default grouping shows the
plugin before the fragment. If I remove the default grouping and add
<plugin>.patch before <plugin> I still get the Plugin's source instead
of the fragment's...

Am I doing something wrong or should I file a bug?

Cheers,

James
Re: Source lookup doesn't work when debugging a fragment [message #331326 is a reply to message #331324] Mon, 01 September 2008 16:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: zx.code9.com

James Blackburn wrote:
> Hi All,
>
> I've created a fragment which overrides existing platform functionality.
> I've added the fragment's jar to the plugin's Bundle-ClassPath and
> Eclipse-ExtensibleAPI: true
>
> The code builds and runs as expected - I can verify that my code is
> being called. However if I set a breakpoint, the source shown is for
> the original plugin, not the fragment (line numbers etc. are out of whack).
>
> In the Debug View's Source Lookup path, the Default grouping shows the
> plugin before the fragment. If I remove the default grouping and add
> <plugin>.patch before <plugin> I still get the Plugin's source instead
> of the fragment's...
>
> Am I doing something wrong or should I file a bug?

Can you file a bug for this, this could be an issue with the new source
bundle story.

Thanks!

Cheers,

~ Chris
Re: Source lookup doesn't work when debugging a fragment [message #331327 is a reply to message #331326] Mon, 01 September 2008 16:52 Go to previous message
Eclipse UserFriend
Originally posted by: jamesblackburn+eclipse.mac.com

Chris Aniszczyk wrote:
> James Blackburn wrote:
>> Hi All,
>>
>> I've created a fragment which overrides existing platform
>> functionality. I've added the fragment's jar to the plugin's
>> Bundle-ClassPath and Eclipse-ExtensibleAPI: true
>>
>> The code builds and runs as expected - I can verify that my code is
>> being called. However if I set a breakpoint, the source shown is for
>> the original plugin, not the fragment (line numbers etc. are out of
>> whack).
>>
>> In the Debug View's Source Lookup path, the Default grouping shows the
>> plugin before the fragment. If I remove the default grouping and add
>> <plugin>.patch before <plugin> I still get the Plugin's source instead
>> of the fragment's...
>>
>> Am I doing something wrong or should I file a bug?
>
> Can you file a bug for this, this could be an issue with the new source
> bundle story.
>
> Thanks!

Thanks for the reply Chris, I've filed https://bugs.eclipse.org/245893

Interestingly source lookup does work when the class only exists in the
fragment (using either source lookup path of 'Default' or
<plugin>.patch, <plugin>) but still can't convince the thing to show me
the correct class when the it exists in both the fragment and the plugin.

Cheers,

James

>
> Cheers,
>
> ~ Chris
Previous Topic:Popup menubarPath for 'New grouping'
Next Topic:How to programmatically waiting for build to complete?
Goto Forum:
  


Current Time: Thu Dec 26 16:58:44 GMT 2024

Powered by FUDForum. Page generated in 0.04796 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top