Erich,
Yes, that's exactly what I'm after. If you happen to know which bits to check, please let me know. Otherwise, I'll do some digging later and report back.
Basically, I'm trying to create a Penalty Box for the developer. If a debugger is attached, I know a developer is present and I want to the code to get stuck forcing the developer to become aware, and hopefully, fix the problem. If that's not the case, I want error handling to take over.