1

I am having issues debugging craft tasks where the issue is caused by validation errors rather than php syntax / environment issues.

How do you debug validation errors in craft tasks?

1

Validation errors will still get logged to craft/storage/runtime/logs with a [warning] label.

Other than that, you options are just like you'd debug anything else in PHP. Preferably with xDebug, but you can always manually Craft::log() and read the log files, too.

| improve this answer | |
  • Ok great, what are the advantages of xDebug (not used it before). Also is there an easy way log arrays? – Sam Hibberd Apr 29 '15 at 8:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.