--- a/src/eric7/Debugger/DebuggerInterfacePython.py Mon Oct 31 14:07:57 2022 +0100 +++ b/src/eric7/Debugger/DebuggerInterfacePython.py Wed Nov 30 09:19:51 2022 +0100 @@ -7,23 +7,21 @@ Module implementing the Python3 debugger interface for the debug server. """ -import os +import contextlib +import json import logging +import os import shlex -import contextlib from PyQt6.QtCore import QObject, QProcess, QProcessEnvironment, QTimer +from eric7 import Globals, Preferences, Utilities +from eric7.EricWidgets import EricMessageBox from eric7.EricWidgets.EricApplication import ericApp -from eric7.EricWidgets import EricMessageBox +from eric7.Globals import getConfig from . import DebugClientCapabilities -from eric7 import Globals, Preferences, Utilities - -from eric7.Globals import getConfig - - ClientDefaultCapabilities = DebugClientCapabilities.HasAll @@ -1371,8 +1369,6 @@ @param sock reference to the socket the data was received from @type QTcpSocket """ - import json - try: commandDict = json.loads(jsonStr.strip()) except (TypeError, ValueError) as err: @@ -1593,8 +1589,6 @@ debuggerId is not given) @type QTcpSocket """ - import json - commandDict = { "jsonrpc": "2.0", "method": command,