Enable switching files and keep LD in the same browser window.
Adding some console debug messages.