From e41ecb19cf270bc94c89f372c38eeb2b52db551e Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 20 Oct 2021 16:21:48 +0300 Subject: [PATCH] Resolve an issue with interrupting a running program --- platformio/commands/debug.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platformio/commands/debug.py b/platformio/commands/debug.py index 290144b8..48d86891 100644 --- a/platformio/commands/debug.py +++ b/platformio/commands/debug.py @@ -17,6 +17,7 @@ import asyncio import os +import signal import subprocess import click @@ -166,6 +167,7 @@ def cli( client = GDBClientProcess(project_dir, debug_config) coro = client.run(__unprocessed) try: + signal.signal(signal.SIGINT, signal.SIG_IGN) loop.run_until_complete(coro) if IS_WINDOWS: # an issue with `asyncio` executor and STIDIN,