You should ideally put separate try-catch blocks around areas where you think an exception would be thrown - instead of putting everything in the same one.
Otherwise, when you debug, it creates pdb files which - if they're present in the folder where the file is executing, you can get the line number.
That said, this error is pretty common, you have a null somewhere.
Added: Over here I'm assuming that for some reason you can't get the debugger to stop on exception, and/or can't trace it because you're deploying it to a third party or something.