Re: howto do a backtrace on windows?
| From: | Jason Barnett | Date: | Tue, 22 Mar 2005 18:03:41 +0000 |
| Subject: | Re: howto do a backtrace on windows? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-25782@lists.php.net to get a copy of this message | ||
Use cygwin / gcc?!?! :P
Is debug_backtrace() unable to give you what you want?
<?php
$old_err = set_error_handler('bt_handler');
trigger_error();
restore_error_handler();
function bt_handler($type, $msg, $file, $line) {
return debug_backtrace();
}
?>
--
Teach a man to fish...
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc