Okay I found the solution:

with ctrl+Tab you switch sides in a custom battle in debug mode.

I have to try if it works in battle during a campaign game ...