summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/console/trex_console.py
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2017-03-08 16:42:58 +0200
committerimarom <imarom@cisco.com>2017-03-08 16:43:49 +0200
commitd8a541a28d09ecc85629f29a57db8a4be1fe526c (patch)
treea0c1a2c672fd0ce3eceda0c3555e0988d1fbe965 /scripts/automation/trex_control_plane/stl/console/trex_console.py
parentff9e99898759c20e57b7102db693db6c75f8d57d (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/trex_console.py')
-rwxr-xr-xscripts/automation/trex_control_plane/stl/console/trex_console.py7
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'''