Skip to content

Commit

Permalink
Debugger: apply editor mapping for browser from CLI (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
thorewi authored and dg committed Apr 6, 2021
1 parent 2155db4 commit da8677c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tracy/Debugger/Debugger.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ public static function exceptionHandler(\Throwable $exception): void
}
echo "$exception\n" . ($file ? "(stored in $file)\n" : '');
if ($file && self::$browser) {
exec(self::$browser . ' ' . escapeshellarg($file));
exec(self::$browser . ' ' . escapeshellarg(strtr($file, self::$editorMapping)));
}
} catch (\Throwable $e) {
echo "$exception\nUnable to log error: {$e->getMessage()}\n";
Expand Down

0 comments on commit da8677c

Please sign in to comment.