2
私が呼ぶとき、私は、デバッガを使用することはできません理由を判断しようとしています:なぜ 'dumpdata'管理コマンドでデバッガにステップインできませんか?
python manage.py dumpdata --indent=2 > forum/fixtures/initial_data.json'
私は管理コマンドコードに次のステートメントを入れている:コマンドと呼ばれるとき
import pdb; pdb.set_trace()
# I also tried
import ipdb; ipdb.set_trace()
をちょうどハングアップし、CTL-Cで停止する必要があります。
$ python manage.py dumpdata --indent=2 > forum/fixtures/initial_data.json
^CERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (55, 0))
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (101, 0))
なぜデバッガは動作しませんか?