1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XenDebug (XenForo Debug Tools) 1.0.4

Addon for developers that provides you with additional debugging functionality

  1. Naatan

    Naatan Well-Known Member

    Naatan submitted a new resource:

    XenDebug (version 0.1) - Addon for developers that provides you with additional debugging functionality

    Read more about this resource...
     
    Thomas.B and Luke F like this.
  2. Naatan

    Naatan Well-Known Member

    I would appreciate if any developers extend upon this addon that they share it back with the community, I made this addon to increase my productivity and am sharing it with you so you can do the same.
     
    yavuz likes this.
  3. guiltar

    guiltar Well-Known Member

    Thanks! Nice addon!
    But want to ask: what exact benefits it has over xdebug for example?
     
  4. Naatan

    Naatan Well-Known Member

    I'm not sure I catch your meaning? Xdebug is an interactive debugger, this addon provides you with a detailed debug log. They're 2 different things.

    You could use xdebug to retrieve the same info as this addon provides, but when you're often accessing certain data or when you are actively debugging a large amount of code having a debug log comes in very useful.

    It's a tool that I use on top of xdebug, it's not intended to be an alternative to xdebug.
     
    euantor and guiltar like this.
  5. Naatan

    Naatan Well-Known Member

  6. simbolo

    simbolo Well-Known Member

    I'm getting an error when using this plugin and trying to do a search on phrase:

    Code:
    Admin Control Panel
    Server Error
     
    vsprintf() [function.vsprintf]: Too few arguments
     
    XenForo_Application::handlePhpError()
    vsprintf() in XenDebug/Log/Abstract.php at line 126
    XenDebug_Log_Abstract->logQuery() in XenDebug/Db/Mysqli.php at line 10
    XenDebug_Db_Mysqli->query() in Zend/Db/Adapter/Abstract.php at line 734
    Zend_Db_Adapter_Abstract->fetchAll() in XenForo/Model/Phrase.php at line 64
    XenForo_Model_Phrase->getEffectivePhraseListForLanguage() in XenForo/ControllerAdmin/Phrase.php at line 300
    XenForo_ControllerAdmin_Phrase->actionSearch() in XenForo/FrontController.php at line 310
    XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
    XenForo_FrontController->run() in /var/www/sites/plugins.xf.com/htdocs/admin.php at line 13
    When I disable this plugin all is well. Specifically disabling mysql logging by passes the issue.

    Settings:
    (*) Log Exceptions
    (*) Log Debug
    (*) Log Code Events (Default groups)
    (*) Log SQL Queries
     
  7. Naatan

    Naatan Well-Known Member

    Naatan updated XenDebug with a new update entry:

    v0.1.2

    Read the rest of this update entry...
     
  8. Naatan

    Naatan Well-Known Member


    Only just saw your message, todays update should have fixed this. Funny how I released it half an hour after you posted that without having seen your message.
     
    simbolo likes this.
  9. simbolo

    simbolo Well-Known Member

    Upgraded and still getting the error:
    Code:
    vsprintf() [function.vsprintf]: Too few arguments
     
    XenForo_Application::handlePhpError()
    vsprintf() in XenDebug/Log/Abstract.php at line 126
    XenDebug_Log_Abstract->logQuery() in XenDebug/Db/Mysqli.php at line 10
    XenDebug_Db_Mysqli->query() in Zend/Db/Adapter/Abstract.php at line 734
    Zend_Db_Adapter_Abstract->fetchAll() in XenForo/Model/Phrase.php at line 64
    XenForo_Model_Phrase->getEffectivePhraseListForLanguage() in XenForo/ControllerAdmin/Phrase.php at line 300
    XenForo_ControllerAdmin_Phrase->actionSearch() in XenForo/FrontController.php at line 310
    XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
    XenForo_FrontController->run() in /var/www/sites/plugins.xf.com/htdocs/admin.php at line 13
    I'll take a look tonight to see if I can fix it. If I do I'll branch/push to github.
     
  10. simbolo

    simbolo Well-Known Member

    Great minds think alike. I should be adding to your mod as well.
     
  11. Naatan

    Naatan Well-Known Member

    Looking at the code I see I've wrote down "exception" instead of "Exception" in a catch block, I'm guessing that's the reason it's not falling back on the catch block, though I'm not in a position to test right now. I'll look into it tomorrow.
     
  12. Naatan

    Naatan Well-Known Member

  13. simbolo

    simbolo Well-Known Member

  14. Naatan

    Naatan Well-Known Member

  15. ReneHermi

    ReneHermi Member

    Hi @Naatan,

    first, great addon:) The ChromeDebug is working excellent, but is do not find the xendebug.log when i switch to XenDebug_Log_File. Where is it generated and written to?
     
  16. Chris D

    Chris D XenForo Developer Staff Member

    By default it is created and written out to your PHP tmp location. You should be able to ascertain the location of this from your site PHP info, at http://yoursite.com/admin.php?tools/phpinfo or from your working php.ini file.
     
  17. Brogan

    Brogan XenForo Moderator Staff Member

    As agreed to by the original developer @Naatan, @Chris Deeming has now taken ownership of this add-on.
     
    Chris D likes this.
  18. euantor

    euantor Well-Known Member

    This looks mighty interesting, especially if its as extensible as advertised...
     
  19. Thomas.B

    Thomas.B Well-Known Member

    Really nice add-on! Seems to have no problems with the 1.4 releases. But I found a small bug in the default value of the second parameter in the log() method in XenDebug_Log_File and XenDebug_Log_ChromePhp class

    PHP:
    public function log($message$type self::TYPE_DEBUG$level 3)
    should be

    PHP:
    public function log($message$type XenDebug_Log::TYPE_DEBUG$level 3)
     
  20. bAstimc

    bAstimc Member

    Nice addon but I don't know how to use it correctly.
    I want to check what is happening on my portal and why it takes over 10seconds to load.
    The original debug only showed the queries which were around 0.001s and so it has to be something different.
    Well after installing, enabling debug and loading the website, I can't find the XenDebug.log file. It isn't in the upload_tmp_dir. :unsure:
    Another thing is that I don't get anything by the ?_debug=1 param anymore.:eek:

    Can anybody help me out?
     

Share This Page