BugStalker icon indicating copy to clipboard operation
BugStalker copied to clipboard

Option to remove the color on `debuggee` error

Open brunbjerg opened this issue 7 months ago • 1 comments

When a Rust binary returns with an error or panics is turns all the text red. This removes the color schemes that is already defined on the Error codes.

For example, when a large consequential error occurs I will bubble it all the way to the main function, while the error is bubbling up state will be extracted from all the subsystems that are functioning within bounds and there are colored green. Below is what bugstalker outputs

Image

And here is what cargo run produces:

Image

Would it be possible to implement this in the code? Maybe you could guide me in the right direction regarding the components of the system that I would have to change?

Kind regards,

brunbjerg avatar Jun 10 '25 18:06 brunbjerg

Hi! Thanks for reporting the issue!

BS handles stdin/stdout of a debugged application in separate threads. Here's the relevant code: https://github.com/godzie44/BugStalker/blob/master/src/ui/console/mod.rs#L243

It would be great if you could try to fix it!

godzie44 avatar Jun 22 '25 12:06 godzie44