Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lmc-base-classes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
LOFAR2.0
lmc-base-classes
Commits
76371ef6
Unverified
Commit
76371ef6
authored
Mar 18, 2021
by
Anton Joubert
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ska_tango_base/base_device.py
+3
-1
3 additions, 1 deletion
src/ska_tango_base/base_device.py
with
3 additions
and
1 deletion
src/ska_tango_base/base_device.py
+
3
−
1
View file @
76371ef6
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment