aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/utils/debug.py
diff options
context:
space:
mode:
authorHenrique <typoon@gmail.com>2019-11-23 15:31:00 -0500
committerHenrique <typoon@gmail.com>2019-11-23 15:31:00 -0500
commita866b424fe60928fb5336f1fa146326424763ca5 (patch)
treec2cdbebf181c3f15601daf472929210a59449f52 /mitmproxy/utils/debug.py
parent16b55f9476373347a3c2553e070497b383288360 (diff)
downloadmitmproxy-a866b424fe60928fb5336f1fa146326424763ca5.tar.gz
mitmproxy-a866b424fe60928fb5336f1fa146326424763ca5.tar.bz2
mitmproxy-a866b424fe60928fb5336f1fa146326424763ca5.zip
Moved command history to an addon and added a new feature:
* If you start typing a command and press "up" only commands starting with that string will be returned
Diffstat (limited to 'mitmproxy/utils/debug.py')
-rw-r--r--mitmproxy/utils/debug.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mitmproxy/utils/debug.py b/mitmproxy/utils/debug.py
index c9ffb614..e36a50a4 100644
--- a/mitmproxy/utils/debug.py
+++ b/mitmproxy/utils/debug.py
@@ -10,6 +10,10 @@ from OpenSSL import SSL
from mitmproxy import version
+def remote_debug(host='localhost', port=4444):
+ import remote_pdb
+ remote_pdb.RemotePdb(host, port).set_trace()
+
def dump_system_info():
mitmproxy_version = version.get_dev_version()