elifiner / pydump Goto Github PK
View Code? Open in Web Editor NEWCreate coredump like file from Python to post-mortem debug later
Create coredump like file from Python to post-mortem debug later
Howdy,
Found pydump today and have been making changes to make it work in Python3 only.
Are you interested in updates to this script (given its been "idle" for so long)?
If so, then I think I'd try to use six
to try to make this Python2/3 compatible. If not, then I'll just keep my Python3 version.
Thanks
Is it possible to load a dump in PyDev? If not are there any other IDEs that can be used to view the crash dumps? Also, thanks for the awesome post-mortem debugging tool!
Getting this error when trying to dump the program state on exception
Fatal Python error: Cannot recover from stack overflow.
Python runtime state: initialized
Repro:
python crash_test.py
python -m pydump crash_test.py.dump
Output:
python -m pydump crash_test.py.dump
Starting pdb...
Traceback (most recent call last):
File "C:\app\anaconda3\envs\default\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\app\anaconda3\envs\default\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\dev\3rd\pydump\pydump.py", line 312, in <module>
sys.exit(main() or 0)
File "C:\dev\3rd\pydump\pydump.py", line 306, in main
return debug_dump(
File "C:\dev\3rd\pydump\pydump.py", line 114, in debug_dump
post_mortem_func(tb)
File "C:\app\anaconda3\envs\default\lib\pdb.py", line 1639, in post_mortem
p.interaction(None, t)
File "C:\app\anaconda3\envs\default\lib\pdb.py", line 351, in interaction
if self.setup(frame, traceback):
File "C:\app\anaconda3\envs\default\lib\pdb.py", line 214, in setup
lineno = lasti2lineno(tb.tb_frame.f_code, tb.tb_lasti)
File "C:\app\anaconda3\envs\default\lib\pdb.py", line 117, in lasti2lineno
linestarts = list(dis.findlinestarts(code))
File "C:\app\anaconda3\envs\default\lib\dis.py", line 458, in findlinestarts
for start, end, line in code.co_lines():
AttributeError: 'FakeCode' object has no attribute 'co_lines'
Having the current release on pypi would be really helpful for me on a current project. Currently I'm only seeing 1.1.1 as the latest release (https://pypi.org/project/pydump/).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.