[RSS Feed/News] debug: best practices for displaying variables (console log, file system or xf_admin_log for crons ...)

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
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?

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom