swap hg and debugging