[RSS Feed/News] Print Debug Messages

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Trying to write my first add-on, extended Thread, I want to see the structure of $params, my code goes like this.

PHP:

Code:
class Thread extends XFCP_Thread
{
    public function actionEdit(ParameterBag $params)
    {
        // dump $params

        // the first way
        \XF::dump($params);
        \XF::dumpSimple($params);

        // the 2nd way
        \XF::logError('in logError');
        \XF::logException('in logException');

        // the 3rd way
        \XF\Util\File::log('debug.txt'...

Read more
Read more about this Feed . . .
 
Status
Not open for further replies.
Back
Top Bottom