inducer / inducer/pudb

The "o" key for "view output" should probably just be disabled during remote/telnet debugging

Open
#369 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3.2k
Forks
245
Avg merge
13m
Merged PRs (30d)
5

Description

Env:
- SecureCRT 7.2.3 (work on local host)
- Python 3.6
- Ubuntu 18.04 (remote Linux)
- Windows 10 (local host)
```

# -*- coding: utf-8 -*-
from multiprocessing import Process
import os
from pudb.remote import set_trace

def info(title):
print(title)
set_trace()
print('module name:', __name__)
print('parent process:', os.getppid())
print('process id:', os.getpid())

def f(name):
info('function f')
print('hello', name)

if __name__ == '__main__':
info('main line')
p = Process(target=f, args=('bob',))
p.start()
p.join()
```

log:
```
% python -m pudb.run demo_multiprocess.py
main line
pudb:6899: Please telnet into 127.0.0.1 6899.
pudb:6899: Waiting for client...

pudb:6899: Now in session with 127.0.0.1:37918.
```

After seeing the output screen through `o`, I can see the error indent output, and can not go back through hit `enter`.

![image](https://user-images.githubusercontent.com/1092722/70249027-c3854800-17b6-11ea-8a4d-921678c2fada.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.