Eclipse调试步骤与AspectJ [英] Eclipse debug stepping with AspectJ

查看:118
本文介绍了Eclipse调试步骤与AspectJ的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用AspectJ开发工具插件进行Eclipse安装。我正在尝试调试一些使用AspectJ并执行它的代码,但是由于AspectJ在编译时添加了额外的东西,因此无法匹配源代码行。没有人似乎抱怨似乎是一个主要的缺陷(无法调试),所以我希望我只需要调整一些东西来使其工作。我做错了什么?

解决方案

是的,这是一个AspectJ的错误。逐步通过建议具有附加的不正确的文件属性。最好的解决方法是委托您的建议中的正确方法,并且行号将对齐。


I have Eclipse setup with "The AspectJ Development Tools" plugin. I'm trying to debug some code that uses AspectJ and step through it, but it is unable to match up the source lines since AspectJ has added extra stuff at compile time. No one else seems to be complaining about what seems like a major flaw (being unable to debug!), so I'm hoping I just need to tweak something to make it work. What am I doing wrong?

解决方案

Yes, this is a bug with AspectJ. Stepping through advice has the incorrect file attribute attached to it. The best workaround is to delegate to a proper method inside of your advice and the line numbers will be aligned.

这篇关于Eclipse调试步骤与AspectJ的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆