Starting IPython shell crashes pudb when using Django 2.2
- Dominant language
- Python
- Stars
- 3.2k
- Forks
- 245
- Avg merge
- 13m
- Merged PRs (30d)
- 5
Description
How to reproduce:
- `pip install Django pudb ipython`
- Create fresh Django app: `django-admin startproject myproject`, `./manage.py startapp myapp`
- Add a new view method in `myapp/views.py`:
def myview(request):
from pudb import set_trace; set_trace()
- add the view to `myproject/urls.py`
from myapp.views import myview
urlpatterns = [
path('', myview),
]
- Run `./manage.py runserver`, open localhost:8000 in browser. This should halt pudb on the breakpoint in `myview()`
- On pudb, press `!` to open IPython
- Wait for a few seconds
Actual result:
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
June 18, 2019 - 11:57:29
Django version 2.2.2, using settings 'myproject.settings'
Starting development server at http://127.0.0.1:8000
Quit the server with CONTROL-C.
Hit Ctrl-D to return to PuDB
In[1]:
Traceback (most recent call last):
File "./manage.py", line 21, in
main()
Environment:
- macOS Mojave 10.14.5
- iTerm2 3.2.9
- Django 2.2 (issue cannot be reproduced with Django 2.1)
- pudb==2019.1 (latest on PyPI as of writing this ticket)
- IPython==7.5.0 (latest on PyPI as of writing this ticket)
- make sure to keep Django autoreloader enabled (this is default). It seems issue cannot be reproduced when autoreloader is disabled (`./manage.py runserver --noreload`)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.