If ‚xdebug.remote_autostart=0‘ and ‚xdebug.remote_mode‘ set to ‚req‘ everybody who set the GET/POST/COOKIE variable can start a debugging session. This is annoying and can be a serious performance problem. One reason is that you are able to debug remotely with Xdebug.ĭo not set ‚xdebug.remote_autostart‘ to ‚1‘, because every visitor of your page would start an Xdebug session then. You have to install additional software to enable debugging on a local machine. You can install a AMP-stack on your machine for developing local, but your IDE does not automatically connect to the webserver and listen to debug events. In PHP you do not have a local server by default. Microsoft’s Visual Studio starts a local server and does automatically connect to this process for debugging your code, when you develop a web application. for desktop applications, because we often have server-side code. When we talk about web development debugging is not as easy as it is i.e. NET developers are familiar with many good tools to debug their application. I like to start my blog with a small tutorial where i do explain, how you can debug remotely in PHP using Xdebug.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |