开发者

Setting break points in a PHP script (not a web page) using eclipse

I'm running eclipse 3.5 (Galileo) with the PHP development tools (PDT) plug in. I also installed XDebug by follow开发者_开发问答ing 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜