Nope, this is how it is meant to be.
When debugging we're switching to debug perspective.
This makes it possible to have different window during development and debugging.
There is an option to control what perspective should be used. See settings -> debugger -> common -> perspective.
If you don't like the perspective to be switched please open a feature request on our project page on sf.net.