I stopped active debugging in the mail, it was just a waste of time. I managed to find and solve an error. I might need to do this again and will check the logs, but I think the issue is very easy to reproduce.
Regarding the second issue where document open in a debugger window, there's nothing in the logs. The only thing I can make is the video or screenshots.