Hi Anthony,

It is certainly true that you can get into trouble debugging due to the
lack of SMAP support in AspectJ. This comes into play when advice from an
aspect is inlined into a class as part of the weaving process. SMAP support
would enable us to specify that the line numbers in a classfile actually
refer to multiple different source files. Without it the debugger will
think all the line numbers come from the same file (the source for the
class being woven) and so it could jump to unexpected places. This should
only affect around advice (is that the advice you are having problems
with)?  To alleviate this you could turn off advice inlining whilst
debugging with -XnoInline, I think.

Andy


On 3 December 2013 08:06, Anthony Mayfield <i...@aplossystems.co.uk> wrote:

> Hi,
>
>
>
> I'm having an issue using AspectJ in eclipse at the moment.  When the
> project was quite simple the debug points were stopping inside the Aspect
> whereas now they aren't.  Also when I go into a method that is wrapped it
> will show the debug point on a random line in the target class (I assume
> this is because it's on the injected code).  I have AJDT and the m2e
> configurator installed, from online it seems that this should enable the
> debugging to work as expected, has anyone else experienced this?
>
>
>
> All the best,
>
>
>
> Anthony.
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@eclipse.org
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
_______________________________________________
aspectj-users mailing list
aspectj-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to