1
我有一段時間讓xdebug在xampp上工作。我試圖能夠使用phpStorm在瀏覽器中調試php。XAMPP,Xdebug和phpStorm
我在Windows 7(64bit版)上。
我下載了適當版本的Xdebug(我認爲)。 PHP 5.4 VC9 TS(64位)
在php.ini將這個(相同php.ini中從我的phpinfo())
[XDebug]
zend_extension_ts = "\xampp\php\ext\php_xdebug-2.2.0RC1-5.4-vc9-x86_64.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable=on
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=」dbgp」
xdebug.trace_output_dir = "\xampp\tmp"
我曾有過編輯的php.ini更改默認的htdocs到另一個位置(我不知道這是否會影響xdebug)
此外,我看到許多這類問題的答案是使用xdebug嚮導。這不適合我 - 不會告訴我由於某種原因下載哪個二進制文件。
似曾相識? http://stackoverflow.com/questions/18491768/xampp-phpstorm-xdebug-not-stopping-on-breakpoints – LazyOne
哦,人,我真的希望是那樣。更改我的php.ini爲: '[XDebug] zend_extension =「C:\ Program Files(x86)\ xampp \ php \ ext \ php_xdebug-2.2.3-5.4-vc9.dll」 xdebug.profiler_append = 0 xdebug.profiler_enable = 1個 xdebug.profiler_enable_trigger = 0 xdebug.profiler_output_dir = 「C:\程序文件(x86)\ XAMPP \ TMP」 「cachegrind.out%叔%S」 xdebug.profiler_output_name = Xdebug的。 remote_enable = 0 xdebug.remote_handler = 「dbgp」 xdebug.remote_host = 「127.0.0.1」 xdebug.remote_port = 9000 xdebug.trace_output_dir = 「C:\ Program Files文件(x86)的\ XAMPP的\ tmp目錄」' 但還是沒有快樂 – mustacheMcGee
echo PHP_INT_SIZE; // => 4 所以這是有用的知道,謝謝! – mustacheMcGee