Updated specific locations to be searchable, take a look at Las Vegas as an example.

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
Tips for debugging?
Post Body

I seem to spend 90% of my coding time on debugging / trying to figure out why something isn't working, and so I'm wondering if anyone has any general tips on how to debug more efficiently. I use a lot of print() statements to look at variables and stuff, but I wonder if there's anything more I could do to speed along my debugging process. I should mention that I'm not the most experienced coder, and am relatively new to lua.

Also, I saw in the debug library / manual (?) (https://pgl.yoyo.org/luai/i/debug.debug) that apparently you can use debug.debug to "enter an interactive mode with the user" and "inspect global and local variables, change their values, evaluate expressions, and so on." I'm wondering how this can be done? I'm able to enter this interactive mode, however I don't know what commands to enter in order to do the aforementioned things. Where can I find a list of commands for this? I can't seem to find any additional information on debug.debug anywhere aside from this snippet.

Any help / discussion on the topic of effective debugging practices would be appreciated!

Author
Account Strength
100%
Account Age
4 years
Verified Email
Yes
Verified Flair
No
Total Karma
3,711
Link Karma
426
Comment Karma
3,270
Profile updated: 20 hours ago
Posts updated: 2 weeks ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
4 months ago