Add debug logging to windows.