Mostrar lista de opciones

debug_backtrace()

« DateTimeZone::listIdentifiers | debug_print_backtrace »
<?php
$array 
debug_backtrace (
    
?// [int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT]
    
  // [int $limit = 0]
);
?>
Resultado
$array = [
  
=> [
    
'file' => '/home/micmap/cgi-bin/php-by-example/models/function_core.php',
    
'line' => 84,
    
'function' => 'exec_procedure',
    
'class' => 'function_core',
    
'object' => 'debug_backtrace instance',
    
'type' => '->',
    
'args' => [
      
=> 'debug_backtrace',
      
=> 0,
      
=> [
      ],
    ],
  ],
  
=> [
    
'file' => '/home/micmap/cgi-bin/php-by-example/models/function_core.php',
    
'line' => 253,
    
'function' => 'exec_function',
    
'class' => 'function_core',
    
'object' => 'debug_backtrace instance',
    
'type' => '->',
    
'args' => [
    ],
  ],
  
=> [
    
'file' => '/home/micmap/cgi-bin/php-by-example/models/action.php',
    
'line' => 23,
    
'function' => 'process',
    
'class' => 'function_core',
    
'object' => 'debug_backtrace instance',
    
'type' => '->',
    
'args' => [
    ],
  ],
  
=> [
    
'file' => '/home/micmap/cgi-bin/php-by-example/models/application.php',
    
'line' => 179,
    
'function' => 'run',
    
'class' => 'action',
    
'object' => 'debug_backtrace instance',
    
'type' => '->',
    
'args' => [
    ],
  ],
  
=> [
    
'file' => '/home/micmap/www/php-by-example/index.php',
    
'line' => 36,
    
'function' => 'run',
    
'class' => 'application',
    
'object' => 'application instance',
    
'type' => '->',
    
'args' => [
    ],
  ],
]
Ejemplos
#1 debug_backtrace  ()
Ver también
debug_print_backtrace, trigger_error