nette / tracy

😎 Tracy: the addictive tool to ease debugging PHP code for cool developers. Friendly design, logging, profiler, advanced features like debugging AJAX calls or CLI support. You will love it.
https://tracy.nette.org
Other
1.76k stars 218 forks source link

Error line is not highlighted on CLI mode #539

Closed janbarasek closed 2 years ago

janbarasek commented 2 years ago

Version: v2.9.1

Bug Description

When rendering the code snippet to Terminal, the line where the error occurred is not highlighted.

For example:

Snímek obrazovky 2022-04-10 v 19 30 22

Steps To Reproduce

Throw exception in debug and CLI mode.

Expected Behavior

Render line with red background.

dg commented 2 years ago

What are you offering in return?

janbarasek commented 2 years ago

The more happy programmers who now have to look for exactly where the wrong line is in the text.

Highlighting the active row (including the column) could be implemented in the CLI like this:

Snímek obrazovky 2022-04-11 v 9 04 51

mabar commented 2 years ago

I assumed you expected money in exchange for help, not someone else's happiness. It doesn't work the other way around? Where's the quid pro quo?

dg commented 2 years ago

This isn't working for me as motivation. But if it does for you, send a PR.

janbarasek commented 2 years ago

Ok.