So do 
```
gdb --args cmsRun <your config file>
catch throw
run
where
```
The ```catch throw``` tells gdb to stop when an exception is being thrown.