Proc(): wait for the debugger only when debug=True specified