简体   繁体   English

您可以从Windows中的DMP文件读取已经运行的Python脚本的变量数据吗?

[英]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.

相关问题 检查Windows中是否已在运行Python脚本 - Check if a Python script is already running in Windows 从 python 脚本通信到已经运行的脚本 - Communicating from python script to already running script 在 python shell 从 Z0F4137ED1502B5045D6083AA258B 文件5C42Z 中运行 python 脚本 - Running python script in python shell from a windows batch file 为什么在Windows中将Python脚本作为服务运行不能将数据写入文本? - Why running a Python script as a service in Windows can not write data to text? 如果另一个实例已经在运行,如何杀死 python 脚本及其子进程 - How to kill python script and its children if another instance of it is already running 从 windows 批处理文件运行 python 脚本 - 文件名冲突 - Running python script from windows batch file - filename conflicts 如何从文本文件中的列中读取数据到 python 中的 3 1D numpy arrays - How can you read data from columns in a text file into 3 1D numpy arrays in python 运行 python 脚本并使用来自另一个 python 脚本的 output 文件 - running a python script and using its output file from another python script 从 PHP 运行 Python 脚本但它不起作用 - Running Python script from PHP but its not working 读取文件并提取数据并从 python 文件中分配给变量 - Read a file and extract data and assign to a variable from a python file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM