-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Color stacktraces printed by the crash handler when in a TTY #33505
base: master
Are you sure you want to change the base?
Conversation
@Calinou Is this still desired? If so, it needs to be rebased on the latest master branch. |
Needs rebasing. Should be fine to merge then if it works. |
9e2e275
to
cc4c4e2
Compare
Rebased and tested again on Linux, it works as expected. Please test this on macOS before merging. The Windows portion of this PR won't work correctly until #44118 is merged (which still needs testers on Windows 7/8.1). |
cc4c4e2
to
95d37cf
Compare
Since, #44118 is merged now, maybe we can get this merged after a rebase. |
Rebased and tested again, it works as expected on Linux and Windows (MSVC). See OP for updated screenshots. @bruvzg If you have time, could you test and review the macOS side of this just in case? Thanks in advance 🙂 |
95d37cf
to
a27ed52
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be changed in another PR, either in the crash handler or the |
a27ed52
to
8b20d4a
Compare
Probably a crash handler should be changed to handle SIGTRAP. CRASH_NOW is calling |
Just noticed this, nice work! Is it really needed to explicitly add TTY checks and ANSI codes everywhere instead of having some sort of generic, optionally colored print system though? That might sound a bit excessive (and can definitely become such) but I'm pretty sure that there might be a clean and simple way of going along with it (hell, perhaps even a bunch of macros?). If it's done in more places that might be material for another PR but I can't stop wondering about this. |
|
This makes them easier to read.
8b20d4a
to
95cbc6f
Compare
@Calinou Would you like to rebase this? I'm interested. |
Follow-up to #44118.
This makes crash backtraces easier to read, which in turn improves the developer experience.
Preview
Windows 10 (MSVC)
Linux
PS: For testing purposes, you can call
CRASH_NOW();
anywhere to make Godot crash.