標籤:c style blog a http ext
最近想學伺服器開發,但是沒找到免費的虛擬機器主機,好在有一大把的php主機,
於是決定學php了,但並不準備學網頁製作,只是把php作為伺服器邏輯處理語言。
下載xampp,開啟phpstrom的設定介面,
1、設定php解譯器。點擊"..."按鈕,瀏覽到xampp的目錄下的php目錄,設定好php解譯器。
2、設定調試器。,填入idekey,host,port
並在php目錄下的php.ini的最下面的[XDebug],修改如下,把前面的分號刪掉,
注意idekey和的idekey相同。
[XDebug]
zend_extension = "c:\dev\xampp\php\ext\php_xdebug.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "c:\dev\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 0
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.trace_output_dir = "c:\dev\xampp\tmp"
;xdebug ide
xdebug.idekey="PHPSTORM"
;跟蹤資訊輸出檔案
;訪問者的ip 和 請求的方法
xdebug.dump.SERVER = REMOTE_ADDR,REQUEST_METHOD
;追做使用者的get請求
xdebug.dump.GET = *
;開啟自動跟蹤
xdebug.auto_trace=1
;手機使用者請求時提交的參數
xdebug.collect_params=3
;跟蹤使用者行為4(看官網說明吧,好多項,根據自己需要來配)
xdebug.trace_options=4
3、在主菜單上的run菜單"edit config"建立一個php srcipt配置