▲ | seanmcdirmid 5 days ago | |||||||||||||
Rare 1% bugs practically require prints debugging because they are only going to appear only 6 times if you run the test 600 times. So you just run the test 600 times all at once, look at the logs of the 6 failed tests, and fix the bug. You don’t want to run the debugger 600 times in sequence. | ||||||||||||||
▲ | roca 5 days ago | parent | next [-] | |||||||||||||
Record-and-replay debuggers like rr and UndoDB are designed for exactly this scenario. In fact it's way better than logging; with logging, in practice, you usually don't have the logs you need the first time, so you have to iterate "add logs, rerun 600 times" several times. With rr and UndoDB you just have to reproduce once and then you'll be able to figure it out. | ||||||||||||||
| ||||||||||||||
▲ | pjmlp 5 days ago | parent | prev | next [-] | |||||||||||||
Trace points do exist. | ||||||||||||||
▲ | binary132 4 days ago | parent | prev [-] | |||||||||||||
conditional breakpoints, watches, … | ||||||||||||||
|