Highlight debug functions

前端 未结 1 2018
陌清茗
陌清茗 2020-12-21 19:43

I use PhpStorm for a while now, and it\'s code inspection and syntax highlighting is great! To further extend this feature, I am looking for a way to alert myself of \'debug

1条回答
  •  [愿得一人]
    2020-12-21 20:10

    1. Install and use Php Inspections (EA Extended) plugin

    2. Once installed -- Settings/Preferences | Editor | Inspections

    3. One of the inspections this plugin provides called Forgotten debug statements -- find it there (hint: there is a search field -- use it)

    4. This inspection will highlight some standard debug related functions + you can add your own function names.

    P.S. This inspection works with PHP functions only -- it will not find constructions like echo '

    ',print($var),'
    '.

    BTW -- why don't you try Xdebug/Zend Debugger for a proper debug experience?

    0 讨论(0)
提交回复
热议问题