If you can debug web apps in netbeans its very easy to configure netbeans to debug console yii applications.
- You must add a run configuration at project properties: Right click at project name, in projects tab and select the properties menu option.
- Click in the "Run Configuration" categorie, at left column.
- In the field "Configuration" ,Add a new configuration pressing "new..." button and give a name to the new configuration profile (i.e. console config).
- In the Run As field,select "Script (run in command line)" option.
- In the field "Index File" enter protected/yiic.php
- In the "Arguments" field, enter the name of you yiic command and, if needed, other arguments.
- Press OK button.
Now you have 2 run configuration profiles. To debug the console app, right click at project name in the Projects and switch to the new configuration profile in "Set configuration" option and use the IDE to debug as usual.
You can create a run configuration for each console command you have.
Regards.
Isidoro.