Movatterモバイル変換
[0]ホーム
Python-2.1 Debug libs zip is missing tcl &tk debug libs
Alex Martellialeaxit at yahoo.com
Sun Apr 22 17:55:44 EDT 2001
"Kevin Rodgers" <kevinmrodgers at home.com> wrote in messagenews:ASHE6.43930$EN.1398920 at news1.rdc1.sdca.home.com... [snip]> I'm working on embedding Python on Win32, and I just use the binary> installer for Python. But I don't use the Windows "debug" mode anyway;I'd> have to build debug versions of Numeric, Tkinter, Tcl/Tk, BLT, ad nauseam.Seconded!!! Further, any OTHER library you might be using in yourapp, even ones totally unrelated to Python, should also be rebuilt in'debug mode' (specifically: so it uses the "Debug multithreaded DLL",MSVCRTD.DLL, as its C Runtime). A major bother.> Instead, I use the "release" project and change the settings so that it> generates full debug information. Since the errors I find duringdebugging> are invariably in my code, not Python's, I don't need to trace into Python> anyway....nor presumably in Microsoft's C Runtime (which is the real purposeof MSVCRTD.DLL -- it also provides slightly better diagnostics forsome pointers overwritings and memory leaks, but not really goodones anyway -- numega's boundschecker, devpartner, or howeverthey're calling it this week is advisable if you DO need help for thediagnosis of such issues).> real-programmers-debug-using-print-statements-ly yr's-kevin...or the Windows equivalent, the OutputDebugString API -- youcan also call it in Python, with win32all extensions. With the helpof some auxiliary utility or system-level debugger, it lets you seemessages from your code *no matter how* it may be running --as a COM server, NT service, or any other situation where usingsomething as invasive as an interactive debugger is out of thequestion (and you typically don't have stdout or stderr pointingto anything usable -- besides, with OutputDebugString you cansee messages from various languages correctly intermixed in theorder in which they were sent, etc). The skill a typical "realprogrammer" develops to put in just the right amount ofdebug-calls with just the right amount of information in eachthen really comes in handy, of course!-)Alex
More information about the Python-listmailing list
[8]ページ先頭