Any Debugging tips?
Any Debugging tips?
Does anybody have any debugging tips they'd like to share?
I'm currently using debug() to write in log.txt where the bot is running in the code and what certain variables are.
I'm currently using debug() to write in log.txt where the bot is running in the code and what certain variables are.
I used a window.
Create a JFrame add a text view etc. Maybe even a pause button. Call Show().
http://sillysoft.net/forums/viewtopic.p ... ight=frame
Create a JFrame add a text view etc. Maybe even a pause button. Call Show().
http://sillysoft.net/forums/viewtopic.p ... ight=frame
- RandomGuy
- Lux Veteran
- Posts: 1463
- Joined: Mon Mar 05, 2007 12:02 am
- Location: Central American Jungle
- Contact:
QFTBertrand wrote:Real-time debugging is the best way to debug.
http://sillysoft.net/wiki/?real%20debugging
Is there an easy way to see what the bot is doing besides manually stepping through the code via NetBeans?
I'm looking to fix a bug that occurs very infrequently, and I don't want to simply step through until it occurs.
I usually just let Lux automatically restart the game, and then come back in an hour or so to see if the bot has gotten itself into an endless loop.
I'm looking to fix a bug that occurs very infrequently, and I don't want to simply step through until it occurs.
I usually just let Lux automatically restart the game, and then come back in an hour or so to see if the bot has gotten itself into an endless loop.
Who is online
Users browsing this forum: No registered users and 52 guests