/ Published in: PHP

Lorsque vous cherchez le cheminement jusqu'à une fonction/méthode particulière, vous ajoutez un « debug_print_backtrace() ; » dans celle-ci et lors de l’exécution ça vous affiche un truc du style :
#0 MusicFactory->loadDataForDetail(925658) called at [xxxxxx.php:58]
#1 ProductManager->findByProductRefForDetail(925658, 3, ) called at [zzzzz.class.php:72]
#2 ProductAction->execute() called at [eeeee.class.php:539]
#3 Controller->perform() called at [ffffff.php:121]
… tous les appels sont affichés, avec les paramètres et les lignes dans chaque fichiers inclus.
#0 MusicFactory->loadDataForDetail(925658) called at [xxxxxx.php:58]
#1 ProductManager->findByProductRefForDetail(925658, 3, ) called at [zzzzz.class.php:72]
#2 ProductAction->execute() called at [eeeee.class.php:539]
#3 Controller->perform() called at [ffffff.php:121]
… tous les appels sont affichés, avec les paramètres et les lignes dans chaque fichiers inclus.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
debug_print_backtrace() ;
URL: http://fr.php.net/manual/fr/function.debug-print-backtrace.php
Comments
