Controlling the Software

If you can’t immediately reproduce the bug with the latest source code, instead of whatever version the user is running, then it’s possible that this is because it has already been fixed. You can’t assume that, however—it’s just as possible that the bug is still there but in a subtly different form. You can be certain only after you’ve completed your diagnosis, which starts by finding a reproduction of the bug.

Simply compiling from the same source doesn’t guarantee that you will be running the same object code. You also need to ensure that you use the same compiler, configured in the same way, and the same runtime, libraries, and any third-party code that is integrated with your software.

Of course, using the same ...

Get Debug It! now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.