You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For development of APIs, it would be very nice if there was a way to make tracy emit its CLI formatted error messages in some cases (in my case it would be in dev mode, when the user agent is curl).
I looked at the code and I can nearly force it to go the correct route by affecting global state one way or another, but in the very end, there's Helpers::detectColors() which calls Helpers::isCli() which looks at PHP_SAPI which I cannot fake.
It would be cool if there was a way where I could put tracy "hey - this request, even though it's made through a server - will end up outputting on my terminal, so please go in CLI mode"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
For development of APIs, it would be very nice if there was a way to make tracy emit its CLI formatted error messages in some cases (in my case it would be in dev mode, when the user agent is curl).
I looked at the code and I can nearly force it to go the correct route by affecting global state one way or another, but in the very end, there's
Helpers::detectColors()
which callsHelpers::isCli()
which looks atPHP_SAPI
which I cannot fake.It would be cool if there was a way where I could put tracy "hey - this request, even though it's made through a server - will end up outputting on my terminal, so please go in CLI mode"
Beta Was this translation helpful? Give feedback.
All reactions