دالة PHP debug_print_backtrace ()
مثال
طباعة تتبع PHP الخلفي:
<?php
function a($txt) {
b("Glenn");
}
function b($txt) {
c("Cleveland");
}
function c($txt) {
debug_print_backtrace();
}
a("Peter");
?>
التعريف والاستخدام
تقوم الوظيفة debug_print_backtrace () بطباعة تتبع PHP الخلفي.
تعرض هذه الوظيفة البيانات من الكود الذي أدى إلى وظيفة debug_print_backtrace ().
بناء الجملة
debug_print_backtrace(options, limit);
قيمه المعامل
Parameter | Description |
---|---|
options | Optional. Specifies a bitmask for the following option: DEBUG_BACKTRACE_IGNORE_ARGS (Whether or not to omit the "args" index, and all the function/method arguments, to save memory) |
limit | Optional. Limits the number of stack frames printed. By default (limit=0) it prints all stack frames |
تفاصيل تقنية
قيمة الإرجاع: | لا أحد |
---|---|
إصدار PHP: | 5.0+ |
سجل التغيير في PHP: | PHP 5.4: تمت إضافة حد المعامل الاختياري PHP 5.3.6: تمت إضافة خيارات المعلمات الاختيارية |
مرجع أخطاء PHP