Marcus
Well-known member
Is there a best practice for displaying variables when writing an addon?
1. If I write a cron, what is the preferred debug method? Writing to the admin log? Or to a file system, is that possible?
2. For functions like preSave(), is it best to show the output in the browser console log? Is there an xf function to do that?
Or do you recommend xdebug or another external tool ? What do you use for debugging?
1. If I write a cron, what is the preferred debug method? Writing to the admin log? Or to a file system, is that possible?
2. For functions like preSave(), is it best to show the output in the browser console log? Is there an xf function to do that?
Or do you recommend xdebug or another external tool ? What do you use for debugging?