1

Closed

Step in to function via ctypes on Python 3.3 doesn't work

description

from ctypes import *
try:
    natmod_dll = windll.LoadLibrary("natmod.pyd")
except:
    natmod_dll = windll.LoadLibrary("natmod_d.pyd")
natmod_dll.frub.argtypes = [c_int, c_int]
natmod_dll.frub.restype = c_int
n = natmod_dll.frub(-1, 2)
int __stdcall frub(int x, int y) {
    return x + y;
}
Do a step into on the frub(-1, 2) line, and it continues execution and doesn't step in. Putting a breakpoint in frub causes it to be hit.
Closed Sep 30, 2013 at 8:21 PM by pminaev
The reason why this happened is because symbols for _ctypes.pyd were not loaded properly.

comments