I wanted to tell you guys about some of my things I use to debug my programs. I will first list them and then go in depth.
- Cheat engine
Cheat engine can be used to change RAM value’s in a program. It als has a debugger. You can download it on: https://www.cheatengine.org/. Why should you change RAM values you think? for example you can check what happens when you change a value while your program is running, when it gets corrupted maybe. You can test how robust your program is to weird values or corrupted memorry.
- IDE debugger
this maybe seems so simple but many people don’t use the default debuggers. You can step through your programs for example. This makes it way more easy to debug your program.
You should use loggers not only to show progress to users, but also to show where in the program exactly something went wrong. You can also log to files. So you could also upload those files if people using your software allow it to debug even more.