[Tutor] calling printf() in a C language DLL using ctypes.CDLL

eryk sun eryksun at gmail.com
Tue May 8 22:12:12 EDT 2018


On Wed, May 9, 2018 at 1:30 AM, Brad M <thebigwurst at gmail.com> wrote:
>
> If you want to know where your program went when something went wrong or
> when it triggers a if condition, how do you do it?

Look into use the logging module [1] and debuggers [2], either
dedicated like Winpdb or in an IDE such as PyCharm.

[1]: https://docs.python.org/3/howto/logging.html#logging-basic-tutorial
[2]: https://wiki.python.org/moin/PythonDebuggingTools

For debugging a DLL, learn to use a native debugger, such as
Microsoft's WinDbg, cdb, or the Visual Studio debugger.
OutputDebugString [3] writes a string to an attached debugger.

[3]: https://msdn.microsoft.com/en-us/library/aa363362


More information about the Tutor mailing list