Logging in standard debugwindow

Works for chrome and firefox