/tmp Output file of entire call stack is missing function depths

KentBye - January 28, 2009 - 03:14
Project:Visualize Backtrace
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

New in the latest commits is the possibility to output a text dump of a function call stack.

The problem is that the output may need to either be filtered more (i.e. get rid of repeating functions) or needs more processing logic that appears further down in the code.
The function call stack array has more filtering that's being done is happening since it was only originally intended to just be a *.dot output file.

Depths are being skipped, and generally it looks to be a bit of a mess.
Need to dig into it more.

Here's a sample output from the /tmp/drupal_debug_1233108926.txt file

1 {main} index.php 0
2 drupal_bootstrap index.php 16
   4 drupal_unset_globals includes/bootstrap.inc 981
   4 conf_init includes/bootstrap.inc 985
    5 conf_path includes/bootstrap.inc 311
    5 include_once includes/bootstrap.inc 312
     6 drupal_validate_utf8 includes/bootstrap.inc 725
   4 variable_get includes/bootstrap.inc 991
   4 variable_get includes/bootstrap.inc 996
   4 require_once includes/bootstrap.inc 1003
    5 include_once includes/database.inc 146
    5 db_connect includes/database.inc 152
   4 ip_address includes/bootstrap.inc 1009
   4 drupal_is_denied includes/bootstrap.inc 1009
     6 db_prefix_tables includes/database.mysqli.inc 237
     6 preg_replace_callback includes/database.mysqli.inc 242
       8 db_escape_string includes/database.inc 213
       8 db_escape_string includes/database.inc 213
     6 _db_query includes/database.mysqli.inc 244
      7 variable_get includes/database.mysqli.inc 110
  3 _drupal_bootstrap includes/bootstrap.inc 971
   4 require_once includes/bootstrap.inc 1017
    5 sess_open includes/session.inc 0
    5 sess_read includes/session.inc 0
      7 db_prefix_tables includes/database.mysql-common.inc 36
      7 preg_replace_callback includes/database.mysql-common.inc 41
        9 db_escape_string includes/database.inc 213
       8 variable_get includes/database.mysqli.inc 94
     6 db_fetch_object includes/session.inc 32
     6 db_query includes/session.inc 42
      7 _db_query_callback includes/database.mysql-common.inc 40
       8 _db_query_callback includes/database.inc 0
       8 variable_get includes/database.mysqli.inc 94
     6 db_fetch_object includes/session.inc 43
   4 variable_init includes/bootstrap.inc 1024

 
 

Drupal is a registered trademark of Dries Buytaert.