# Debugging a program

To debug an AspectJ program follow the same steps as when debugging a Java program, choosing the AspectJ/Java Application launch configuration if your main method is contained in an aspect.

If you are debugging around advice, then you need to turn on the No Inline AspectJ compiler preference. You can either set this for your whole workspace, in which case

1. select Window > Preferences > AspectJ > Compiler
2. select the Advanced tab
3. check the No Inline checkbox,

or, you can set this on a per-project basis

1. select the AspectJ project in the Package Explorer
2. right click and select Properties
3. Select AspectJ Compiler in the list on the left of the properties page
4. select Use project settings
5. select the Advanced tab
6. check the No Inline checkbox
7. click OK to close the project properties dialog.

Debugging

Launching a program with the main method in a class
Launching a program with the main method in an aspect
Launching a program with an aspectpath or an outjar Load-time weaving