forked from VimPlug/jedi
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))
|
paths.append(os.path.join(root, filename))
|
||||||
else:
|
else:
|
||||||
paths = [path]
|
paths = [path]
|
||||||
|
|
||||||
|
try:
|
||||||
for path in paths:
|
for path in paths:
|
||||||
for error in jedi.Script(path=path)._analysis():
|
for error in jedi.Script(path=path)._analysis():
|
||||||
print(error)
|
print(error)
|
||||||
|
except Exception:
|
||||||
|
if '--pdb' in sys.argv:
|
||||||
|
import pdb
|
||||||
|
pdb.post_mortem()
|
||||||
|
|||||||
Reference in New Issue
Block a user