What one broker that I have used did was save the previous trading day and resend it, with timing preserved. It was specifically to help developers test their applications.
If it was purely to test/debug your software you could have chosen some other instrument, which is trading when you are running your tests. For example an instrument in Asia, or a futures instrument which runs for 23 out of 24 hours.