开发者

PHP - Enable a stack trace on errors [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Is there a php.ini directive that enables stack traces on errors?

I am setting up a LAMP sever on Ubuntu and want to enable the error stack trace. I had this on a server that I used before where it would out put a stack of the functions that it was running when the error occurred. This was very helpful when debugging. I didn't set up the server I saw th开发者_开发问答is on so I have no idea what was enabled or installed. Is there something I need to do to the .ini file or do I need to install something. If it is an install if you could provide the Aptitude command to install it that would be fantastic.


Try XDebug.

http://xdebug.org/

You can then have all sorts of new debugging features enabled, including stack tracing.

It's also easy to install via pecl:

http://xdebug.org/docs/install

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜