python如何看执行过程_查看python脚本执行过程

python -m trace --trace /home/lyg/work/lear/python/downloadavi.py

Traceback (most recent call last):

File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main

"__main__", mod_spec)

File "/usr/lib/python3.5/runpy.py", line 85, in _run_code

exec(code, run_globals)

File "/usr/lib/python3.5/trace.py", line 856, in

main()

File "/usr/lib/python3.5/trace.py", line 794, in main

code = compile(fp.read(), progname, 'exec')

File "/home/lyg/work/lear/python/downloadavi.py", line 16

print(url_MP4s)

^

IndentationError: unexpected indent

Error in sys.excepthook:

Traceback (most recent call last):

File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook

from apport.fileutils import likely_packaged, get_recent_crashes

File "/usr/lib/python3/d

你可能感兴趣的:(python如何看执行过程)