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-0.0.0.2.tar.gz (1.5 kB view hashes)

Uploaded Source

Built Distribution

pydebugstring-0.0.0.2-py3-none-any.whl (1.9 kB view hashes)

Uploaded Python 3

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