zooba / ogre3d-python-embed

Embedding Python into an ogre3d demo
42 stars 18 forks source link

Python 3.10 support #3

Open axelande opened 2 years ago

axelande commented 2 years ago

It would be nice to see a followup using VS2022 and Python3.10, especially if Python is running via a venv.

flexorx commented 1 year ago

I was trying out this example https://devblogs.microsoft.com/python/embedding-python-in-a-cpp-project-with-visual-studio/ and figured that, while Python debugging works in VS-2017, it appears to be very broken in VS-2022. First of all, on a brand new installation for VS-2022, you don't find Python/Native Debugging anymore. To bring it back, you have to do what compiler was supposed to do for you — copy files around, as described here (May 2022): https://learn.microsoft.com/en-us/answers/questions/860222/the-option-34pythonnative-debugging34-is-missing-f.html.

But then the integration starts to work, while the breakpoints stopped hitting in Python/Native Debugging Mode. The Python symbols are loaded, but the breakpoints in ai.py stop hitting.