Closed Ragazzo closed 8 years ago
Related with https://github.com/yiisoft/yii2/issues/838
related to #52
You mean debug module or general framework exceptions?
@samdark ?
I was asking about "highlighting in debug module, not only for sql". Which parts do you mean exactly? Where do you plan to add highlighting to?
well, in Events
debug module panel, to highlight event that was raised (it would be simple VarDumper::dump
), also i think that in other panels category
should be highlighted, and some values that could be auto-recognized.
On Request
panel i think we can highlight values
of key
-> values
pairs, so it will be easy to read and understand this settings.
Overall ofcourse we should not use it too much ) I will also adjust current css for highlighting to much one from exception view, what do you think ? I think it will be good if we will have one style, at least for php
.
I think we should fix #52 first.
well, it depends on what should be fixed. Can you maybe clarify there some questions ? Because as i se now we have already implemented 3d party highlighter that is based on hljs
, and also hljs
is free, so we have server and client solutions. So it will be good to have some questions list to clarify things.
What questions are you referring to?
none, i just asking of what questions or bugs or features should be fixed in #52 ? Or what does should fix #52 first
mean ? Since we already have everything we need, not sure if we should create some internal component wrapper for 3rd party in this case.
Where is the fix for #52? Do you mean the highlighter in the debug module?
I think the highlighter should be a self-contained extension rather than within the debug module. Also, I'm not sure if hljs
is the best choice. There are many 3rd party solutions. We should integrate a good one (I have no idea which is better myself).
Ah, i see your point, you want one as a local extension like others, something similar to what is done for authclient
extension with several auth classes and strategies. Fine, should i close this one ?
Yes. I think once such an extension is ready, highlighting the debug info is a natural thing to do.
Ok, however will keep separated issue about highlighting debug module open. Yet it is similar to some issue with all debug module features, but can be used for particular debug module highlighting discussion.
Issue moved to https://github.com/yiisoft/yii2-debug/issues/122
It would be good to have highlighting in debug module, not only for sql. This can be done by this repo, it also was noted by @cebe some time ago and he made it available through composer . Currently working on this one .