Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Debugging with eclipse

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Vinicius Carvalho wrote:
| When debugging how can one track the variables? my breakpoints stop
| at the right place but I can't watch/inspect the variables.
|

Hello Vinicius,

usualy you need to do one "singlestep" operation after hitting the
breakpoint, so eclipse can load the current context.
This behaviour is sometimes annoying -- anyway, it is not directly
a AJDT problem, it sometimes happens when hitting a breakpoint in
normal java code as well.
Another problem is directly related to AJDT: sometimes, when stepping
into advice (I got the impression this is espeicaly the case when
cflow is involved), the adviced codeline is showed in editor, but
not highlighted (and no variables). The call stack showes in this
case we are stepping into some ajc injected methods or the like.
There is a AspectJ compiler preference "no inline". Setting this,
helps in many cases, but not in all cases.

Bottom line: at the moment, you have to live with this. Debugging
AspectJ adviced code is not so convinient as debugging standard
java code, but it is alredy much better then it was last year
:-)

greetings,
Hermann
- --


- ---------------------------------------------------------------
Hermann Voßeler
Baader Wertpapierhandelsbank AG / IT
Weihenstephaner Straße 4
D-85716 Unterschleißheim
Internet: www.baaderbank.de
- ---------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFCpXU5ZbZrB6HelLIRAlUEAJ909dP7wPcZ07yPatHGQwAGGei1EwCfVHyT
muGjPzEjiVTvJpF23lIo6Dc=
=QH/D
-----END PGP SIGNATURE-----


Back to the top