Skip to content
Snippets Groups Projects
Unverified Commit 76371ef6 authored by Anton Joubert's avatar Anton Joubert
Browse files

SAR-231 Improve debugger logging

Minor improvements to log messages and a docstring.
parent ca6f6030
No related branches found
No related tags found
No related merge requests found
...@@ -1665,6 +1665,7 @@ class SKABaseDevice(Device): ...@@ -1665,6 +1665,7 @@ class SKABaseDevice(Device):
self.monkey_patch_all_methods_for_debugger() self.monkey_patch_all_methods_for_debugger()
device._methods_patched_for_debugger = True device._methods_patched_for_debugger = True
else: else:
self.logger.warning("Triggering debugger breakpoint...")
debugpy.breakpoint() debugpy.breakpoint()
return _DEBUGGER_PORT return _DEBUGGER_PORT
...@@ -1732,12 +1733,13 @@ class SKABaseDevice(Device): ...@@ -1732,12 +1733,13 @@ class SKABaseDevice(Device):
dtype_out="DevUShort", dtype_out="DevUShort",
doc_out="The TCP port the debugger is listening on." doc_out="The TCP port the debugger is listening on."
) )
@DebugIt()
def DebugDevice(self): def DebugDevice(self):
""" """
Enables remote debugging of this device. Enables remote debugging of this device.
To modify behaviour for this command, modify the do() method of To modify behaviour for this command, modify the do() method of
the command class. See it for further details. the command class: :class:`.DebugDeviceCommand`.
""" """
command = self.get_command_object("DebugDevice") command = self.get_command_object("DebugDevice")
return command() return command()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment