jco icon indicating copy to clipboard operation
jco copied to clipboard

Componentize -d all-debug option

Open guybedford opened this issue 1 year ago • 3 comments

For debugging it would be convenient to have a jco componentize -d all-debug option which would disable all features except for stdio for debugging.

guybedford avatar Dec 30 '24 19:12 guybedford

What do you think about about allowing something like --disable all --enable stdio ? I think the generality of allowing disable + enable (and documenting that we handle disables first/how they combine)?

It feels like it would be hard to describe the string all-debug in the CLI help text -- maybe if it was something more descriptive like all-except-debug or something or -d preset-debug (with docs somewhere on what the "debug" preset does for feature toggling) or something...

vados-cosmonic avatar Jan 15 '25 15:01 vados-cosmonic

Sure, we could have disable union with enable features to allow different sets, that seems to make sense to me? I guess the question then is which takes precedence, but disable taking precedence might be fine.

I still think having a simple flag to remember would be useful. Alternatively, perhaps we just have a singular debug mode - jco componentize --debug, and perhaps that's really what we need to keep things straightforward.

guybedford avatar Jan 15 '25 19:01 guybedford

That all said, on a debug build you might want to disable stdio - jco componentize --debug --disable stdio, so the reverse composition.

guybedford avatar Jan 15 '25 19:01 guybedford