function to write python obects to OutputDebugString on windows
Project description
pydbugstring
Provides a function to call Windows OutputDebugString with any Python Object.
Provides a handler for the Python Logging Module which sends logging to OutputDebugString.
The output can be viewed using the DebugView program from the SysInternals package from Microsoft.
Sample Use
import pydebugstring
import sys
import logging
#send an object to OutputDebugString
logger=logging.getLogger()
logger.setLevel(logging.DEBUG)
logger.addHandler(pydebugstring.OutputDebugStringHandler())
print(f"Sending sys.path [{sys.path}] to outputDebugString")
pydebugstring.outputDebugString(sys.path)
debug_message = "Sample Debug Message"
print(f"Sending [{debug_message}] with logging.info")
logging.info(debug_message)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pydebugstring-1.0.0.1.tar.gz
(1.7 kB
view details)
Built Distribution
File details
Details for the file pydebugstring-1.0.0.1.tar.gz
.
File metadata
- Download URL: pydebugstring-1.0.0.1.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bfbf6c924cc3ca35d3fac267a26a25fa7bf5d11aeb1439321377a8c0f94e939 |
|
MD5 | feed7ea548027956fbd8b2a8a3c1a028 |
|
BLAKE2b-256 | 84806fc3df18b225d2ce18b741e839ed95d45c20f5b1b1e77bcd72460ca16f71 |
File details
Details for the file pydebugstring-1.0.0.1-py3-none-any.whl
.
File metadata
- Download URL: pydebugstring-1.0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0bd54351145f2d1c1e6fb569228024e69878ce0e88217275938e3e416ae7b36 |
|
MD5 | 7c4d8f390395185871518b9bdd86daef |
|
BLAKE2b-256 | 04f4decc4162ac8ff417623b3c8191397e4c695df5d47889c0484972aaa3bb2e |