PHP on Windows with XAMPP running 100 times too slow

后端 未结 9 1159
甜味超标
甜味超标 2020-11-29 08:55

PHP runs so slowly on my Windows desktop that phpMyAdmin takes minutes to open a database. Here’s a comparison of the time to run a simple PHP test program:

  • Wi
9条回答
  •  清酒与你
    2020-11-29 09:04

    I solve my problem with xdebug idekey setting (xdebug.idekey="xdebug1"), and chrome extension xdebug helper (https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc)

    *Dont forget to disable remote_autostart (xdebug.remote_autostart=0)

    Only activating debug (xdebug) by request, using idekey setting, so if debug not needed php processing can be faster/normal, tonggle by button with chrome extension

    I'm using xampp 1.8.3 on windows 10 64bit, i use custom idekey, xdebug.idekey="xdebug1", same with xdebug helper setting

    [XDebug]
    zend_extension = "E:\xampp183\php\ext\php_xdebug.dll"
    xdebug.profiler_append = 0
    xdebug.profiler_enable = 1
    xdebug.profiler_enable_trigger = 0
    xdebug.profiler_output_dir = "E:\xampp183\tmp"
    xdebug.profiler_output_name = "cachegrind.out.%t-%s"
    xdebug.remote_enable = 1
    xdebug.remote_autostart=0
    xdebug.idekey="xdebug1"
    xdebug.remote_handler = "dbgp"
    xdebug.remote_host = "127.0.0.1"
    xdebug.trace_output_dir = "E:\xampp183\tmp"
    xdebug.remote_log="E:\xampp183\tmp\xdebug\xdebug.log"
    

    Now breakpoint/debug activated only if session is requsted via xdebug helper

提交回复
热议问题