Skip to content

Tracy in .phar show wrong debug line #254

@Axisweb

Description

@Axisweb

This bug is displayed if Tracy is packed in .phar archive.
Vesion: <=2.4
It doesn't recognize that is in phar and in debugger window create wrong link to source code.

<?php
include 'Tracy/tracy.phar';
use Tracy\Debugger;
$a=Array('12','15');
Debugger::enable(false); 
Debugger::$showLocation = TRUE;
Debugger::barDump($a);
?>
<!DOCTYPE HTML>
<html lang="en">
<head>
	<title></title>
	<meta charset="UTF-8">
</head>
<body>
<p>...</p>	
</body>
</html>

Output:

array (2)
0 => "12" (2)
1 => "15" (2)
in ...\core\include2\Tracy\tracy.phar\Tracy\Debugger.php:2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions