문제

I'm running eclipse 3.5 (Galileo) with the PHP development tools (PDT) plug in. I also installed XDebug by following these instructions.

It works great when I debug a web page running on localhost. I can set break points and step through the code.

However, I can't debug a PHP script. I can run it, and I see the output from print statements in the console, but it ignores any break points.

Is it possible to debug a PHP script, or does PHP debugging only work under a web server?

도움이 되었습니까?

해결책

The instruction say : In XAMPP, the default location for the php.ini file is “c:\xampp\apache\bin\php.ini. The cli version may very well use another php.ini. Did you change this .ini, too?

<?php echo get_cfg_var('cfg_file_path');

tells you which .ini you have to change.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top