cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

[NFR] Phalcon\Debug and link to file with an error

Open iforp opened this issue 13 years ago • 3 comments

There is an usefull xdebug setting — xdebug.file_link_format

This setting determines the format of the links that are made in the display of stack traces where file names are used. This allows IDEs to set up a link-protocol that makes it possible to go directly to a line and file by clicking on the filenames that Xdebug shows in stack traces.

For example, in my case xdebug.file_link_format = "phpstorm:%f@%l" It generates direct links to my IDE project-file-line in xdebug warnings/exceptions (in the message body and in the backtrace) with my own URL protocol. Like this phpstorm:D:\server\some-project\index.php@44

But Phalcon\Debug don't use this feature, simply shows the path to the error, which makes it unusable.

iforp avatar Oct 18 '13 17:10 iforp

vs

iforp avatar Oct 18 '13 18:10 iforp

Please check now.

ghost avatar Oct 19 '13 19:10 ghost

Implemented in 1.3.0

ghost avatar Oct 22 '13 16:10 ghost