is there anyway to get the current filename as a s...
# multiplatform
m
is there anyway to get the current filename as a string? Something like C or pythons
__FILE__
magic constant
e
Not yet.
m
sad, but alright, I got around it 😛
j
yet? 👀
😄 3
m
how I kinda did it xD
btw
d
You can do
val t = trace.first { it.contains("dbg") }
btw.
👍 1
m
I thought about it. But I want what's next to the line that has dbg
It's a bit critic, but the
i
gets incremented past the line with dbg
d
Ahh I see it now
indexOfFirst { ... } + 1
👍 1
e
j
Nice, thanks 🙏