I\'m attempting to track down the cause of a rare bug (love those intermittent bugs) where a customer selects to Register at time of checkout, but when the order is completed, M
I would add lots of extra logging, try to log it well enough to capture the bug - and to save those logs if the bug can be detected.
Once you have logs that show the bug, you can then isolate the problematic code more easily.
For this, you may need to log the database queries, which might, unfortunately, be tricky if the volume of data is high and/or subject to privacy concerns.