Instructions for debugging extension (on Windows) ================================================= Robert Cowham robert@vaccaperna.co.uk Ensure you download and install the ActiveState debug libs from: ftp://ftp.activestate.com/ActivePython/etc/ Edit setup.py and uncomment the lines: # extra_compile_args=["/DOS_NT", "/DMT", "/DCASE_INSENSITIVE"], # extra_link_args=["/NODEFAULTLIB:libcmt"], Ensure you have deleted any build results in build/temp.win32-2.3 Run "python_d setup.py bdist_dumb" Change to directory where built, e.g. \build\lib.win32-2.3 Rename P4Client.pyd to P4Client_d.pyd Run your script in that directory ensuring it is in the path to pick up the local copies before any others. Using MSVC you can then start debugging python_d.exe in that directory. Depending on how you do it you may want to add as an extra DLL p4client_d.pyd. Set breakpoints in P4Clientmodule.cc and you should be away!
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 5750 | Robert Cowham | New branch | ||
//guest/robert_cowham/perforce/API/python/main/DEBUG.txt | |||||
#2 | 5101 | Robert Cowham | Updated docs and added new Linux binary. | ||
#1 | 5057 | Robert Cowham |
- Added P4Error class and catch all errors - shouldn't see P4Client.error any more! - Raise the error when appropriate. - Added translate() function to allow working with Internationalised servers. - Fix problem with diff2 and diff |