Others] epp3.0 的CI自動完成插件 [復制鏈接]
php debug:
epp3報錯: no php executables defined 或
Session could not be started. In order to generate debug information, please make sure that the debugger is properly configured as a php.ini directive.
在php.ini中添加
xdebug.auto_trace = On
xdebug.remote_autostart = On
xdebug.remote_enable = on
xdebug.remote_host = localhost
xdebug.remote_port = 9000
xdebug.remote_mode = req
xdebug.remote_handler = dbgp
xdebug.profiler_enable = on
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
; 工作目錄
xdebug.profiler_output_dir = "e:/wamp/tmp"
1.aparche 配置虛擬目錄:
可以把epp3的workspace目錄配置為aparhce的虛擬目錄
Alias /php/ "E:/workspace/php/"
<Directory "E:/workspace/php/">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
訪問方式:
http://localhost/php/項目/php頁面
2.強制不緩存文件:
在開發調試web的時候,經常會碰到因瀏覽器緩存(cache)而經常要去清空緩存或者強制刷新來測試的煩惱,提供下apache不緩存配置和nginx不緩存配置的設置。
apache:
首先確定配置文件httpd.conf中確已經加載mod_headers模塊。
LoadModule headers_module modules/mod_headers.so
我們可以根據文件類型來讓瀏覽器每次都從服務器讀取,這里測試用css、js、swf、php、html、htm這幾種文件。
<FilesMatch “\.(css|js|swf|php|htm|html)$”>
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
</FilesMatch>
nginx:
location ~ .*\.(css|js|swf|php|htm|html )$ {
add_header Cache-Control no-store;
}