Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dealing with bugs that only appear right after boot

I dealt with a bug today that only appeared when I ran my program right after booting my computer. The cold start exposed a race condition which triggered the bug. I managed to fix it, but it took a long time because I had to reboot my machine several times to figure out what was going on. Can anybody suggest better ways of debugging problems like this in the future? Can I somehow quickly put the computer into a "just booted" state?

Running Python 2.6 on Windows XP.

like image 649
Jesse Aldridge Avatar asked Jan 27 '26 03:01

Jesse Aldridge


1 Answers

Run it inside a virtual machine.

like image 131
fseto Avatar answered Jan 29 '26 19:01

fseto



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!