Skip to content

Commit

Permalink
BlueScreen: added source to header
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Mar 9, 2023
1 parent 40832ea commit 4ade899
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Tracy/BlueScreen/assets/page.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ namespace Tracy;
* @var string $title
* @var ?string $nonce
* @var string $css
* @var string $source
*/

$code = $exception->getCode() ? ' #' . $exception->getCode() : '';
Expand All @@ -28,6 +29,7 @@ $chain = Helpers::getExceptionChain($exception);
echo Helpers::escapeHtml("\n\tcaused by " . get_debug_type($ex) . ': ' . $ex->getMessage() . ($ex->getCode() ? ' #' . $ex->getCode() : ''));
} ?> -->
<?php endif ?>
<!-- <?= Helpers::escapeHtml($source) ?> -->

<style class="tracy-debug">
<?= str_replace('</', '<\/', $css) ?>
Expand Down
1 change: 1 addition & 0 deletions tests/Tracy/expected/Debugger.E_ERROR.html.expect
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

<title>Error: Call to undefined function missing_function()</title>
<!-- in %a%:%d% -->
<!-- %a% -->

%A%
</head>
Expand Down
1 change: 1 addition & 0 deletions tests/Tracy/expected/Debugger.error-in-eval.expect
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

<title>User Error: The my error</title>
<!-- in %a%:%d% -->
<!-- %a% -->

%A%
</head>
Expand Down
1 change: 1 addition & 0 deletions tests/Tracy/expected/Debugger.exception.fiber.html.expect
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

<title>Exception: The my exception #123</title>
<!-- in %a%:%d% -->
<!-- %a% -->

%A%
</head>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

<title>Exception: The my exception #123</title>
<!-- in %a%:%d% -->
<!-- %a% -->

%A%
</head>
Expand Down
1 change: 1 addition & 0 deletions tests/Tracy/expected/Debugger.exception.html.expect
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

<title>Exception: The my exception #123</title>
<!-- in %a%:%d% -->
<!-- %a% -->

%A%
</head>
Expand Down
1 change: 1 addition & 0 deletions tests/Tracy/expected/Debugger.strict.html.expect
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

<title>Notice: Only variables should be assigned by reference</title>
<!-- in %a%:%d% -->
<!-- %a% -->

%A%
</head>
Expand Down

0 comments on commit 4ade899

Please sign in to comment.