better debugging #42

Open
opened 2022-11-01 17:38:45 +00:00 by flloschy · 1 comment
flloschy commented 2022-11-01 17:38:45 +00:00 (Migrated from github.com)

Is your feature request related to a problem? Please describe.
No but yes...
When debugging with console output its often like (not language specific)

log("1 + 2: " + ((1+2) as string))
log("i: " + (i as string))
log("i: " + (i as string) + "\t1+2: " + (3 as string) + "\ti+6(" + (i as string) + "+6: " + ((i+6) as string))

What would be great is a build in which does this automatically like:

debug(1 + 2)
debug(i)
debug(i, 1+2, i+6)

output:

"1 + 2": 3
"i": 4
"i": 4
"1 + 2": 3
"i + 6"(4 + 6): 10

Describe the solution you'd like
Give a calculation or variable into function, and the function prints what arguments are given plus the solution/calculation/value/etc.

Describe alternatives you've considered
idk

Additional context
debugging sucks

**Is your feature request related to a problem? Please describe.** No but yes... When debugging with console output its often like (not language specific) ``` log("1 + 2: " + ((1+2) as string)) log("i: " + (i as string)) log("i: " + (i as string) + "\t1+2: " + (3 as string) + "\ti+6(" + (i as string) + "+6: " + ((i+6) as string)) ``` What would be great is a build in which does this automatically like: ``` debug(1 + 2) debug(i) debug(i, 1+2, i+6) ``` output: ``` "1 + 2": 3 "i": 4 "i": 4 "1 + 2": 3 "i + 6"(4 + 6): 10 ``` **Describe the solution you'd like** Give a calculation or variable into function, and the function prints what arguments are given plus the solution/calculation/value/etc. **Describe alternatives you've considered** idk **Additional context** debugging sucks
Grandiras commented 2022-11-20 15:58:26 +00:00 (Migrated from github.com)

This is something i will consider, but I'm currently working on improvements for the code base and OOP. Improved debugging will be an upcoming feature, though.

This is something i will consider, but I'm currently working on improvements for the code base and OOP. Improved debugging will be an upcoming feature, though.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Darkymos/FAIL#42
No description provided.