Check if xdebug is working

后端 未结 8 2141
暗喜
暗喜 2020-12-04 16:31

Without installing a texteditor or an IDE, is it possible to test if xdebug is working, i.e. if it can debug php code?

The only part xdebug comes up in phpinfo() is

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-04 16:55

    Just to extend KsaRs answer and provide a possibility to check xdebug from command line:

    php -r "echo (extension_loaded('xdebug') ? '' : 'non '), 'exists';"
    

提交回复
热议问题