-
Notifications
You must be signed in to change notification settings - Fork 6
Description
I often find that I want to simply output the immediate properties of an object at a given point in the code.
With the current behaviour of the output directive in v1.11.0, I must click on the label (variable name or expression) to expand it. This inhibits productivity and seems suboptimal for several reasons.
- The label itself is generally of no use until it is expanded, at which point the label is repeated on the next line anyway.
- If I am stepping through the code (such as in a loop), I may have to repeatedly move the mouse over to the debugging pane, or at least aim the cursor at the next object in the debug console to expand it.
- If the property I want does not fit within the single-line printout of the object's properties, I need to expand the object twice instead of once.
- If the label is not expanded before debugging stops, it becomes entirely useless as it cannot be expanded.
Although the J and Jo format options of #244 seem to be a helpful workaround, I think it would be ideal to change the behaviour of the output directive and logpoint so that a single output consisting only of an {object} will omit the initial object label line and instead output only the part that would normally be shown by expanding the label once, i.e. object: ClassName {Properties}. I think it should be default behaviour, but a setting to enable it would be equally welcome.
A format option to expand the object by default would also be welcome (my searching did not turn up any existing or planned way to do this).