just in time debugging is triggered by the O/S. it starts a debugger, which fails, if a debugger is already attached and did not catch the error.
either run without the debugger, or have the debugger catch caught errors with the debugger's exception settings.