2017-03-13 15 views
15

ben PhpStorm 2016,2 ile PHP 5.2 (i eski biliyorum) hata ayıklama, enter image description hereauto_prepend_file sonları benim apache sankon dosyasında <strong>auto_prepend_file</strong> veya <strong>auto_append_file</strong> eklemek ancak zaman

xdebug:

enter image description here

xdebug kesmeleri.

IDE, ilk kesme noktasında durur ve daha sonra adım adım/içeri/dışarı çıkarmaya çalıştığımda hata ayıklama durur ve tarayıcı "veri alınamaz" değerini döndürür.

Benim xdebug.conf dosyası:

#[xdebug] 
php_value xdebug.remote_enable on 
#php_value xdebug.default_enable on 
php_value xdebug.remote_autostart off 
php_value xdebug.remote_port 9000 
php_value xdebug.remote_host 192.168.100.66 
php_value xdebug.profiler_enable 0 
php_value xdebug.profiler_enable_trigger 1 
php_value xdebug.profiler_output_name cachegrind.out-%H-%R-%t 
php_value xdebug.profiler_output_dir /home/abc/xdebug-profile 
php_value xdebug.trace_enable_trigger 1 
#php_value xdebug.auto_trace off 
php_value xdebug.trace_output_name trace.out-%H-%R-%t 
php_value xdebug.trace_format 1 
php_value xdebug.idekey PHPSTORM 
+0

Eğer 'xdebug.auto_trace' öğesini true olarak ayarlarsanız, herhangi bir şey değişir mi? – CBroe

+0

denedim, hiçbir şey değişmiyor – max4ever

cevap

1

çözüm bu

 SetEnv ENVIRONMENT dev 
     php_value auto_prepend_file /home/abc/prepends/apache_prepend.php 
     php_value auto_append_file /home/abc/apache_append.php 

     #INCLUDE XDEBUG AT THE END 
     Include /home/postoronca/projects/immobiliare/site/vhosts/xdebug_notrace.conf 

</VirtualHost> 

P.S. gibi apache sanal konak sonunda xdebug.conf taşımak oldu Daha sonra, 'un php_value xdebug.auto_trace'inin de bu hatayı apache vhost'u değiştirmeden çözdüğünü anladım.

+2

Bir cevap almak ve bir ödül dağıtmaktan kaçınmak için güzel bir yol: D iyi bir iş. – Petzy

+0

Üzgünüz, sadece seninle çalışmadı – max4ever

+0

neyse, sen ödülü almayacaksın. Oku [Bounty daha fazla bilgi edinmek için nasıl çalışır?] (Http://stackoverflow.com/help/bounty) –

İlgili konular