[evolvis-commits] r18245: debugging pending merges:↵ Thorsten Glaser 2012-04-05 show us a backtrace on exit_error()

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Apr 5 23:01:47 CEST 2012


Author: mirabilos
Date: 2012-04-05 23:01:47 +0200 (Thu, 05 Apr 2012)
New Revision: 18245

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/common/include/exit.php
   trunk/gforge_base/evolvisforge-5.1/src/www/themes/css/fusionforge.css
Log:
debugging pending merges:
  Thorsten Glaser 2012-04-05 show us a backtrace on exit_error()


Modified: trunk/gforge_base/evolvisforge-5.1/src/common/include/exit.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/common/include/exit.php	2012-04-05 21:01:42 UTC (rev 18244)
+++ trunk/gforge_base/evolvisforge-5.1/src/common/include/exit.php	2012-04-05 21:01:47 UTC (rev 18245)
@@ -32,7 +32,7 @@
  * @param	string  toptab for navigation bar
  */
 function exit_error($text="", $toptab='') {
-	global $HTML, $group_id, $forge_exit_handler;
+	global $HTML, $group_id, $sysdebug_enable, $forge_exit_handler;
 
 	if ($forge_exit_handler) {
 		$forge_exit_handler($text);
@@ -40,6 +40,10 @@
 	}
 	$HTML->header(array('title'=>_('Exiting with error'), 'group'=>$group_id, 'toptab'=>$toptab));
 	echo $HTML->error_msg(htmlspecialchars($text));
+	if ($sysdebug_enable) echo html_e('div', array(
+		'id' => 'ffBacktrace',
+	    ), str_replace("<br />", '</tt></p><p><tt>', /* suboptimal */
+	    util_ttwrap(htmlspecialchars(debug_string_backtrace()))));
 	$HTML->footer(array());
 	exit;
 }

Modified: trunk/gforge_base/evolvisforge-5.1/src/www/themes/css/fusionforge.css
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/themes/css/fusionforge.css	2012-04-05 21:01:42 UTC (rev 18244)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/themes/css/fusionforge.css	2012-04-05 21:01:47 UTC (rev 18245)
@@ -761,6 +761,17 @@
 	background-color: inherit;
 }
 
+#ffBacktrace {
+	padding:12px;
+	margin:12px;
+	border:1px solid black;
+}
+
+#ffBacktrace p {
+	text-indent:-3em;
+	margin-left:3em;
+}
+
 .img-shadow-l {
 	float:left;
 	background: url(../../images/img-shadowAlpha.png) no-repeat bottom right !important;



More information about the evolvis-commits mailing list