[xdebug]
zend_extension ="D:/phpStudy/php/php-7.0.12-nts/ext/php_xdebug-2.6.1-7.0-vc14-nts.dll"
xdebug.remote_enable = On
;啓用性能檢測分析
xdebug.profiler_enable = On
;啓用代碼自動跟蹤
xdebug.auto_trace=On
xdebug.profiler_enable_trigger = On
xdebug.profiler_output_name = cachegrind.out.%t.%p
;指定性能分析文件的存放目錄
xdebug.profiler_output_dir ="D:/phpStudy/tmp"
xdebug.show_local_vars=0
;配置端口和監聽的域名
xdebug.remote_port=9000
xdebug.remote_host="localhost"php
在phpStorm裏打開監聽,就是一個電話同樣的按鈕,點擊變爲綠色,在程序代碼點前點擊,設置程序段點,點擊綠色的debug爬蟲按鈕,chrome瀏覽器打開xdebug頁,phpStorm出現debug窗口,並獲取到variables值,即爲看到下面的debug信息,說明成功配置。圖13chrome
12 斷點調試瀏覽器
經過點擊紅框中的位置設置和取消斷點安全