frenata / xaqt

Evaluate arbitrary user code in a docker based sandbox.
MIT License
7 stars 5 forks source link

Better debugging options #1

Open frenata opened 6 years ago

frenata commented 6 years ago

From https://github.com/frenata/compilebox-old/issues/2:

What just looking at the flags package and thinking we could really use better debugging options for compilebox and that cli flags a probably the easiest way to implement. Sometimes I need to see the code submitted, sometimes the output, sometimes something else.

CLI flags seem like the standard way to do it but would be trivial to just dispatch a goroutine to listen for keyboard input to change what debug output we're handling. This seems like less standard approach, but I like not having to restart compilebox just to look at different vars...

I guess this is a bigger question of how we would want to structure admin/monitor tools for the service.