PHP debug_print_backtrace() လုပ်ဆောင်ချက်
ဥပမာ
PHP backtrace ကို ပရင့်ထုတ်ပါ
<?php
function a($txt) {
b("Glenn");
}
function b($txt) {
c("Cleveland");
}
function c($txt) {
debug_print_backtrace();
}
a("Peter");
?>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
debug_print_backtrace() လုပ်ဆောင်ချက်သည် PHP backtrace ကို ပရင့်ထုတ်သည်။
ဤလုပ်ဆောင်ချက်သည် 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 Changelog- | PHP 5.4- ရွေးချယ်နိုင်သော ကန့်သတ် ဘောင်ကို PHP 5.3.6 တွင် ထည့်သွင်းခဲ့သည် - ရွေးချယ်နိုင်သော ကန့်သတ်ဘောင် ရွေးချယ်မှုများကို ထည့်သွင်းခဲ့သည် |
PHP Error အကိုးအကား