Debugging an algo

So say I want my algo to react in a specific way in some scenario. In that case I cant simply use a replay where that scenario took place, because i cant visually see how my algo reacted and what it placed etc…
On the other hand, upload the algo to the website and waiting until it reaches plays games and gets a game where it is in the scenario i want to test doesnt feel effcient and takes some time especially if its a rare scenario. so I was wondering if there is a different way to test/debug an algo on a specific scenario that i am not aware of. Thanks in advance!