phpstrom直接運行和調試php

來源:互聯網
上載者:User

標籤: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配置

 

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.