Debugging Extensions using Visual Studio 7.1

Discussion in 'Python' started by Ju-Lian Kwan, Mar 3, 2004.

  1. Ju-Lian Kwan

    Ju-Lian Kwan Guest

    Does anyone know how to get this to work? I've done a fair bit of
    searching with Google and couldn't turn up anything. I just want to get
    debugging to work so I've built a DLL using VC7 and it runs fine. I set
    breakpoints in some of the code. Set the command line/args to run the
    program from python, and then it craps out with: "Fatal Python error:
    Interpreter not initialized (version mismatch?)"

    Does anyone have any suggestions? Apart from building a debug python so
    I can set break points in it?
     
    Ju-Lian Kwan, Mar 3, 2004
    #1
    1. Advertisements

  2. Ju-Lian Kwan

    RichH Guest

    Just turn off optimization (to make it easier to step through the code)
    and build a release version. You can't mix debug and release builds.

    Cheers,
    Rich
     
    RichH, Mar 4, 2004
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.