effekt icon indicating copy to clipboard operation
effekt copied to clipboard

record logging/stringify could use nice formatting

Open IR0NSIGHT opened this issue 1 year ago • 0 comments

since Effekt has no stepper, i have to rely on printline logging to debug. Recently i had a Record Planet(x: double,y: double,z: double,vx: double, vy: double, vz: double, mass: double) which was hell to read in the output.

  • [ ] include field name in show(myRecord): //returns MyRecordType(a: 1, b: 'hello world')
  • [ ] use linebreaks after each field
  • [ ] format records inside arrays too (currently just outputs [Object object, Object object])

i can not think of a case where linebreaks would be truly problematic, but they would improve readability in the console a LOT => streamlining the debugging process

IR0NSIGHT avatar Dec 04 '23 14:12 IR0NSIGHT