fix(debug): make new debug work on windows too

Closes #580