scratchattach icon indicating copy to clipboard operation
scratchattach copied to clipboard

Add a debug mode

Open TheCommCraft opened this issue 1 year ago • 4 comments

I'd add a method to activate debug mode in the module or similar, where it prints raw json data if the parsing fails and similar things

  • [ ] Json decoder error
  • [ ] Other suggestion?

TheCommCraft avatar Jan 12 '25 09:01 TheCommCraft

How would you go about implementing this?

faretek1 avatar May 30 '25 11:05 faretek1

using logging?

faretek @.***> schrieb am Fr., 30. Mai 2025, 13:27:

FAReTek1 left a comment (TimMcCool/scratchattach#327) https://github.com/TimMcCool/scratchattach/issues/327#issuecomment-2922116952

How would you go about implementing this?

— Reply to this email directly, view it on GitHub https://github.com/TimMcCool/scratchattach/issues/327#issuecomment-2922116952, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATCKMZU24UCAM2BFH3WYTB33BA6CTAVCNFSM6AAAAABVA3DWPGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSMRSGEYTMOJVGI . You are receiving this because you authored the thread.Message ID: @.***>

TheCommCraft avatar May 30 '25 15:05 TheCommCraft

Ok.. I think it might also be a good idea to replace the print() statements when using get_user() or get_project etc with warnings/logging.warning instead.

faretek1 avatar Jun 01 '25 12:06 faretek1

I wonder if using rich.console.Console could be a good idea.

faretek1 avatar Oct 05 '25 09:10 faretek1