# Suppress Debugger Exception dialog when debugging IronPython

**URL:** https://forum.alternetsoft.com/t/suppress-debugger-exception-dialog-when-debugging-ironpython/505
**Category:** AlterNET Studio Support
**Created:** [August 10, 2025, 1:50am UTC](https://forum.alternetsoft.com/t/suppress-debugger-exception-dialog-when-debugging-ironpython/505 "2025-08-10T01:50:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sirokai](https://forum.alternetsoft.com/letter_avatar_proxy/v4/letter/s/606060/32.png) [@Sirokai](https://forum.alternetsoft.com/u/Sirokai)
#### Post date: [August 10, 2025, 1:50am UTC](https://forum.alternetsoft.com/t/suppress-debugger-exception-dialog-when-debugging-ironpython/505/1 "2025-08-10T01:50:35Z")

</div>

Hi - how do you prevent the Debugger Exception dialog appearing when encountering an error whilst debugging an IronPython script? I would have expected that the DebuggerErrorOccurred event of the ScriptDebugger object would trigger, allowing me to manually handle exceptions.

I have changed the debugger.Options.BreakOnExceptions and debugger.Options.BreakOnUnhandledExceptions properties, but all they seem to do is change the checkbox status on the Debugger Exception dialog.

Cheers,

John

---

<div class="post-metadata">

### Author: ![andrew.medvedev](https://forum.alternetsoft.com/user_avatar/forum.alternetsoft.com/andrew.medvedev/32/28_2.png) [@andrew.medvedev](https://forum.alternetsoft.com/u/andrew.medvedev)
#### Post date: [August 12, 2025, 12:05am UTC](https://forum.alternetsoft.com/t/suppress-debugger-exception-dialog-when-debugging-ironpython/505/2 "2025-08-12T00:05:35Z")

</div>

Hi Sirokai,

If you need custom logic when exceptions occur in a debugging UI, you can achieve this by creating a class derived from DebuggerUIController and overriding the OnException method.  
I’ve attached a sample project demonstrating this approach.

> **[DebuggerIntegrationSuppressException.zip](https://drive.google.com/file/d/1G1MUufMSLXni5qgBwqRRXd2BhROr4IyE/view?usp=sharing)**
>
> Google Drive file.

Please let me know if this is what you’re looking for.

Regards,

Andrew

---

<div class="post-metadata">

### Author: ![Sirokai](https://forum.alternetsoft.com/letter_avatar_proxy/v4/letter/s/606060/32.png) [@Sirokai](https://forum.alternetsoft.com/u/Sirokai)
#### Post date: [August 12, 2025, 5:44am UTC](https://forum.alternetsoft.com/t/suppress-debugger-exception-dialog-when-debugging-ironpython/505/3 "2025-08-12T05:44:28Z")

</div>

Thanks for that. How do I implement that if I don’t have a tab control and are using single editor mode?
