PHP Debugging with Breakpoints - case studies, examples..?

前端 未结 3 2005
情歌与酒
情歌与酒 2021-01-01 19:44

I\'d really like to get deeper into my php scripts and use things like breakpoints, as I\'m doing with JS with firebug.

I\'d like to know more about what techniques

相关标签:
3条回答
  • 2021-01-01 20:17

    Use XDebug, it does most of what you require (not network/filesystem), and with it you can debug from eclipse, zend studio, pdt, or even notepad++

    I keep debugging again and again when dealing with Magento, and it is super useful in this case, since Magento's function call stack is very deep.

    0 讨论(0)
  • 2021-01-01 20:24

    xdebug + remote debugging + one of the supported clients

    0 讨论(0)
  • 2021-01-01 20:33

    PHP is interpreted and server side scripting language. So, there are only few editors that supports the break point in PHP. And if you are doing the server side scripting then there is no way to debug your script using break points.

    However if you are planning to have basic scripting & debugging then you can go with http://www.firephp.org/. Also if you use Zend Studio editor then you will have many options on hand for debugging your script. Zend Studio supports the break point, run & debug options.

    I prefer to log the execution of my script in file.

    Thanks

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