Skip to main content

function to write python obects to OutputDebugString on windows

Project description

pydbugstring

Provides a function to call Windows OutputDebugString with any Python Object.
Here is the definition:

import ctypes
W32OutputDebugString = ctypes.windll.kernel32.OutputDebugStringW

def outputDebugString(to_show):
    """ 
    :param to_show: to_show
    :return: the value of W32OutputDebugString
    Sends a string representation of to_show to W32OutputDebugString 
    """
    return W32OutputDebugString(f"{to_show}")

outputDebugString("loaded pydebugstring")

The output can be viewed using the DebugView program from the SysInternals package from Microsoft.

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.0.tar.gz (1.3 kB view details)

Uploaded Source

Built Distribution

pydebugstring-1.0.0.0-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file pydebugstring-1.0.0.0.tar.gz.

File metadata

  • Download URL: pydebugstring-1.0.0.0.tar.gz
  • Upload date:
  • Size: 1.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for pydebugstring-1.0.0.0.tar.gz
Algorithm Hash digest
SHA256 cce49701fc60a2ab511ed1ff635b86e947576a4012211800f09a4491c3b8e9d7
MD5 999033d9e2796d5fb252322381731da9
BLAKE2b-256 42df857f52152c16fd814e73f773aef97bc7aef4a93689337e4f6b7df4b1f60b

See more details on using hashes here.

File details

Details for the file pydebugstring-1.0.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pydebugstring-1.0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 524bb38774206d42fe438c4cc88a0bbf0c1a121d7ac4b6504491970f3874c7c9
MD5 986eb9232dd9ab8443d8cfb366957f6f
BLAKE2b-256 1b60987e9c2b93b9b3dbfc907b26e3f079b66f1fb2145e1e2288c6669e13dc2c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page