12 import contextlib |
12 import contextlib |
13 |
13 |
14 from PyQt6.QtCore import pyqtSignal, pyqtSlot, QModelIndex |
14 from PyQt6.QtCore import pyqtSignal, pyqtSlot, QModelIndex |
15 from PyQt6.QtNetwork import QTcpServer, QHostAddress, QHostInfo, QNetworkInterface |
15 from PyQt6.QtNetwork import QTcpServer, QHostAddress, QHostInfo, QNetworkInterface |
16 |
16 |
17 from EricWidgets.EricApplication import ericApp |
17 from eric7.EricWidgets.EricApplication import ericApp |
18 from EricWidgets import EricMessageBox |
18 from eric7.EricWidgets import EricMessageBox |
19 |
19 |
20 from .BreakPointModel import BreakPointModel |
20 from .BreakPointModel import BreakPointModel |
21 from .WatchPointModel import WatchPointModel |
21 from .WatchPointModel import WatchPointModel |
22 from . import DebugClientCapabilities |
22 from . import DebugClientCapabilities |
23 |
23 |
24 import Preferences |
24 from eric7 import Preferences |
25 |
25 |
26 |
26 |
27 DebuggerInterfaces = { |
27 DebuggerInterfaces = { |
28 "Python": "DebuggerInterfacePython", |
28 "Python": "DebuggerInterfacePython", |
29 "None": "DebuggerInterfaceNone", |
29 "None": "DebuggerInterfaceNone", |
398 def __registerDebuggerInterfaces(self): |
398 def __registerDebuggerInterfaces(self): |
399 """ |
399 """ |
400 Private method to register the available internal debugger interfaces. |
400 Private method to register the available internal debugger interfaces. |
401 """ |
401 """ |
402 for name, interface in DebuggerInterfaces.items(): |
402 for name, interface in DebuggerInterfaces.items(): |
403 modName = "Debugger.{0}".format(interface) |
403 modName = "eric7.Debugger.{0}".format(interface) |
404 mod = __import__(modName) |
404 mod = __import__(modName) |
405 components = modName.split(".") |
405 components = modName.split(".") |
406 for comp in components[1:]: |
406 for comp in components[1:]: |
407 mod = getattr(mod, comp) |
407 mod = getattr(mod, comp) |
408 |
408 |
2177 """ |
2177 """ |
2178 if self.debugging: |
2178 if self.debugging: |
2179 self.debuggerInterface.remoteNoDebugList( |
2179 self.debuggerInterface.remoteNoDebugList( |
2180 debuggerId, self.__multiprocessNoDebugList |
2180 debuggerId, self.__multiprocessNoDebugList |
2181 ) |
2181 ) |
|
2182 |
|
2183 def getProjectEnvironmentString(self): |
|
2184 """ |
|
2185 Public method to get the string for the project environment. |
|
2186 |
|
2187 @return string for the project environment |
|
2188 @rtype str |
|
2189 """ |
|
2190 if ericApp().getObject("Project").isOpen(): |
|
2191 return self.tr("<project>") |
|
2192 else: |
|
2193 return "" |