mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-22 13:21:26 +08:00
make it possible to access pdb with 'python -m jedi force --pdb'
This commit is contained in:
@@ -24,6 +24,12 @@ elif len(argv) > 1 and argv[1] == 'force':
|
||||
paths.append(os.path.join(root, filename))
|
||||
else:
|
||||
paths = [path]
|
||||
for path in paths:
|
||||
for error in jedi.Script(path=path)._analysis():
|
||||
print(error)
|
||||
|
||||
try:
|
||||
for path in paths:
|
||||
for error in jedi.Script(path=path)._analysis():
|
||||
print(error)
|
||||
except Exception:
|
||||
if '--pdb' in sys.argv:
|
||||
import pdb
|
||||
pdb.post_mortem()
|
||||
|
||||
Reference in New Issue
Block a user