Change in osmo-gsm-tester[master]: suites/debug: Allow jumping into python debugger

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Tue Feb 18 15:34:58 UTC 2020


pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/17213 )

Change subject: suites/debug: Allow jumping into python debugger
......................................................................

suites/debug: Allow jumping into python debugger

Change-Id: Ia6262299981f1d7ac2d81c22b7b9b007e096259a
---
M suites/debug/interactive.py
1 file changed, 4 insertions(+), 1 deletion(-)

Approvals:
  pespin: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/suites/debug/interactive.py b/suites/debug/interactive.py
index 98bf174..89f967f 100755
--- a/suites/debug/interactive.py
+++ b/suites/debug/interactive.py
@@ -37,7 +37,7 @@
   m.connect(msc.mcc_mnc())
 
 while True:
-  cmd = prompt('Enter command: (q)uit (s)ms (g)et-registered (w)ait-registered, call-list [<ms_msisdn>], call-dial <src_msisdn> <dst_msisdn>, call-wait-incoming <src_msisdn> <dst_msisdn>, call-answer <mt_msisdn> <call_id>, call-hangup <ms_msisdn> <call_id>, ussd <command>, data-attach, data-wait, data-detach, data-activate')
+  cmd = prompt('Enter command: (q)uit (d)ebug (s)ms (g)et-registered (w)ait-registered, call-list [<ms_msisdn>], call-dial <src_msisdn> <dst_msisdn>, call-wait-incoming <src_msisdn> <dst_msisdn>, call-answer <mt_msisdn> <call_id>, call-hangup <ms_msisdn> <call_id>, ussd <command>, data-attach, data-wait, data-detach, data-activate')
   cmd = cmd.strip().lower()
 
   if not cmd:
@@ -48,6 +48,9 @@
   if 'quit'.startswith(cmd):
     break
 
+  elif 'debug'.startswith(cmd):
+    import pdb; pdb.set_trace()
+
   elif 'wait-registered'.startswith(cmd):
     try:
       for m in modems:

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/17213
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: Ia6262299981f1d7ac2d81c22b7b9b007e096259a
Gerrit-Change-Number: 17213
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200218/bd704122/attachment.htm>


More information about the gerrit-log mailing list