Skip to content

better debugging #42

@flloschy

Description

@flloschy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions