fix the repl behavior for inserted code
enable the generated debug files by default