[英]Can you read variable data of an already running Python Script from its DMP file in Windows?
I have a Python program that had some kind of error that prevents it from saving my data. 我有一个Python程式,发生某种错误,导致无法储存资料。 The program is still running, but I cannot save anything.
该程序仍在运行,但是我无法保存任何内容。 Unfortunately, I really need to save this data and there seems to be no other way to access it.
不幸的是,我确实需要保存这些数据,并且似乎没有其他方法可以访问它。
Does the DMP file created for the process through the task manager contain the data my program collected, and if so, how do I access it? 通过任务管理器为流程创建的DMP文件是否包含我的程序收集的数据,如果是,我如何访问它?
Thanks. 谢谢。
Does it contain some or all of the current execution state of your program? 它是否包含程序的部分或全部当前执行状态? Yes.
是。 Is it in a form that you could easily extract the information in the user-level format you are probably looking for from it?
它是否以一种形式可以轻松地以您可能需要的用户级别格式提取信息? Probably not.
可能不是。 It will dump the state of the entire Python interpreter, including the data as represented in memory for the specific Python program that is running.
它将转储整个Python解释器的状态,包括正在运行的特定Python程序在内存中表示的数据。 To reconstruct that data, I'm pretty sure you'd need to run the Python interpreter itself in debug mode, then try to reconstruct your data from whatever your C debugger can piece together.
要重建这些数据,我非常确定您需要在调试模式下运行Python解释器本身,然后尝试从C调试器可以拼凑的任何位置重建数据。 If this sounds very difficult or impossible to you, then you probably have some understanding of what it entails.
如果这对您来说听起来很困难或不可能,那么您可能对它的含义有所了解。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.