Log In  

Playwrite, Performer, podcaster and web dev.

Cart #ziboyohiyu-2 | 2020-01-22 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

I'm coming from the Laravel world and there's a great helper function I use all the time called 'Die and Dump'. It's perfect for debugging and I've been missing it so I rewrote it for pico8.

Wherever you are in your code put dd($variable) and it will work out whether it's a number, string or table and print it all out in a tree and then stop() the process. Colour coded per level in the array.

edit fixed bug rendering a single string

P#72160 2020-01-22 05:17 ( Edited 2020-01-22 08:05)

Cart #waprjugo-0 | 2020-01-20 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

This is a code snippet to create an auto formatting text window. It's around 300 tokens. You can slim that down if you remove some of the visual niceties.

P#72124 2020-01-20 06:07 ( Edited 2020-01-20 06:08)

Follow Lexaloffle:        
Generated 2021-12-08 07:03:02 | 0.096s | Q:12