We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97537bf commit 3473869Copy full SHA for 3473869
1 file changed
helpers/USB_SerialPortMonitor.py
@@ -211,6 +211,17 @@ def on_thread_debug_init(self) -> None:
211
212
def ensure_debugger_attached(self) -> None:
213
"""Enable debugpy tracing for this QThread (idempotent)."""
214
+
215
+ # If running as a PyInstaller EXE → disable debugpy entirely
216
+ import sys
217
+ if getattr(sys, "frozen", False):
218
+ return
219
220
+ # Only enable when developer explicitly requests it
221
+ import os
222
+ if os.getenv("SERIALUI_DEBUGPY", "0") != "1":
223
224
225
if self.debug_initialized:
226
return
227
try:
0 commit comments