Hello Alexander,

> I can't figure out howto debug my c++ extension. If i compile it as 
> release version, I've of course no chance to set a breakpoint.
This is not true. You *can* set breakpoints in release mode, make sure to
add debug information to your release build so you'll be able to see the
sources.
There are several cases (such as inlined functions) that you *can't* set
breakpoint to.

> If I > compile as debug I get the Error-window:
> 
> ... missing MSVCR71D.dll ...
Just copy it (and msvcp71d.dll) from your c:\windows\system32 (or wherever
your windows is installed) to the "Debug" library (or to the Python install
library).

> 1) Is it possible to debug a C++ extension in that environment anyhow ?
Yes. See above.

> 2) How do I have to setup the development environment in that I can debug ?
Just as above again.

If you still can't stop try "forcing" breakpoints using
    __asm int 3
in your code. This way you can even run it out of MSDEV and you'll get a
message box when the "breakpoint" it hit. Just open the debugger on it.

HTH.
--
------------------------------------------------------------------------
Miki Tebeka <[EMAIL PROTECTED]>
http://tebeka.bizhat.com
The only difference between children and adults is the price of the toys

Attachment: pgpLcPULlgHZe.pgp
Description: PGP signature

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to