In Ida when I use debugger, but I can't step back.
Is there any debugger that allow go backwards?
In general, stepping back for a debugger is a hard problem.
gdb has a limited step back feature but it comes with a cost, see here.
But, when you think about it, the whole difficulty solved by the programmer when debugging is to step-back until it reach the bug. This is the whole difficulty and we do not have a nice and automated solution for it right now.