Debugging LTW weaved classes [message #1060205] |
Thu, 23 May 2013 09:46  |
Eclipse User |
|
|
|
Hello everybody,
I have a Spring(3.2.2) + AspectJ(1.7.2) application configured with Load Time Weaving.
In Netbeans, I'm having trouble while debugging woven classes methods, for example the methods annotated with @Transactional. I'm able to put break points in this methods, but when I click "Step over" the debugger doesn't go to the next line, it jumps to line 1 and then to other classes...
I found on stackoverflow (eclipse-debug-stepping-with-aspectj) info that this is a bug in AspectJ.
When I run on Eclipse the debugging is OK, "Step over" works fine(with the exception of the first line in method for which is necessary to press it twice).
Also tried running this code in IntelliJ, there I have the same situation as in Netbeans.
I've googled a lot, but I couldn't find good explanation...
Is this a bug indeed? Does Eclipse IDE has a feature or something that permits the debugging to go smooth? If this is a bug, is there a time frame defined when the bug will be fixed, which release?
Is there a solution/configuration parameter to make this work in other IDEs (Netbeans, IntelliJ), tried -XnoInline, but it didn't help.
Thank you in advance,
Dumitru
[Updated on: Thu, 23 May 2013 10:41] by Moderator
|
|
|
|
|
Re: Debugging LTW weaved classes [message #1061431 is a reply to message #1061321] |
Fri, 31 May 2013 11:16  |
Eclipse User |
|
|
|
This is a known problem and has been around for a while. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=80430. You can still step and debug through around advice. The problem is that the debugger steps through the wrong file. This does make things hard to debug.
A workaround that I typically do is to have the aspect file open next to the target file. As the debugger erroneously steps through the target file, I keep an eye on the same line in the aspect file.
|
|
|
Powered by
FUDForum. Page generated in 0.04086 seconds