fixed debugging mode on windows