If you want to be able to debug the application when the exception happens, create a project that will launch the application upon starting the debugger (see Project Properties->Debug tab). The project need not have any source code.
Afterwards, tell the debugger to break on any thrown exception (see Debug->Exceptions) and launch your application with F5.