starts/stops Blackfire profiling agent if needed.comment/uncomment proper lines in php.ini to switch xDebug.Xdebug.bat calls xdebug.sh to do the following: xdebug blackfire – turn on Blackfire profiler (has no relation to xDebug, definitely, but I have decided to include it into the same script).xdebug profiler – turn on xDebug with profiler.xdebug (without arguments) – show the current status.Sed -i s/^\ extension=blackfire/extension=blackfire/g $ini_fileĮxec /mnt/c/Programs/Blackfire/blackfire-agent.exeĮcho 'argument can be "on", "off", "profiler" or "blackfire" only' Sed -i s/^zend_extension=php_xdebug/\ zend_extension=php_xdebug/g $ini_file Sed -i s/^xdebug.profiler_enable=0/xdebug.profiler_enable=1/g $ini_file Sed -i s/^extension=blackfire/\ extension=blackfire/g $ini_file Sed -i s/^xdebug.profiler_enable=1/xdebug.profiler_enable=0/g $ini_file Sed -i s/^\ zend_extension=php_xdebug/zend_extension=php_xdebug/g $ini_file If grep -q 'xdebug.profiler_enable=0' "$ini_file" If grep -q '\ zend_extension' "$ini_file" If grep -q '^extension=blackfire' "$ini_file" In some folder, which is in Windows PATH, let us create two files: xdebug.bat and off We assume that we work on Windows 10 with Linux Bash Shell installed. This is what final result will be (4 rightmost buttons).įirst, let us create a command file to switch xDebug. Also, we will show how to add buttons for these actions to phpStorm toolbar. Let us show how to turn xDebug on, off, and set profiling modes in Laragon development environment. During development cycle, it is desirable to turn on xDebug only when it is really needed. XDebug is great development tool, but is slows down a web site significantly.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |