From d8a541a28d09ecc85629f29a57db8a4be1fe526c Mon Sep 17 00:00:00 2001 From: imarom Date: Wed, 8 Mar 2017 16:42:58 +0200 Subject: 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 --- scripts/automation/trex_control_plane/stl/console/trex_console.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts/automation/trex_control_plane/stl/console/trex_console.py') 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''' -- cgit 1.2.3-korg