diff options
author | 2017-03-08 16:42:58 +0200 | |
---|---|---|
committer | 2017-03-08 16:43:49 +0200 | |
commit | d8a541a28d09ecc85629f29a57db8a4be1fe526c (patch) | |
tree | a0c1a2c672fd0ce3eceda0c3555e0988d1fbe965 /scripts/automation/trex_control_plane/stl/console | |
parent | ff9e99898759c20e57b7102db693db6c75f8d57d (diff) |
fix for https://trex-tgn.cisco.com/youtrack/issue/trex-369
also added support for interactive debugging with IPython from the
console
(developer mode)
Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/console')
-rwxr-xr-x | scripts/automation/trex_control_plane/stl/console/trex_console.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/automation/trex_control_plane/stl/console/trex_console.py b/scripts/automation/trex_control_plane/stl/console/trex_console.py index a0ff472d..4329d310 100755 --- a/scripts/automation/trex_control_plane/stl/console/trex_console.py +++ b/scripts/automation/trex_control_plane/stl/console/trex_console.py @@ -312,6 +312,13 @@ class TRexConsole(TRexGeneralCmd): def help_push (self): self.do_push("-h") + def do_debug (self, line): + '''Launches IPython for interactively debugging''' + self.stateless_client.debug_line(line) + + def help_debug (self): + self.do_debug('-h') + @verify_connected def do_portattr (self, line): '''Change/show port(s) attributes\n''' |