My application makes use of user creatable python scripts to interact with the application. I am using the python c API for this and therefore use the dlls. I neither use nor intend to deploy the python.exe itself to end users. To make things more difficult, I also want to call the scripts out off memory, not from a file.
How can I implement such debugging functionality? All I can find is
python -m pdb myscript.py
That means calling the exe (=other process), and saving the script to a file. Also, that unfortunately pops up another window.
There are some Py_* debugging methods in the API, but I do not know how to implement them correctly or if they are suitable for my use case at all.
Currently I think the way to go is starting a hidden debugger, attach somehow to the python system, and read/write back the communication to the application. Just that I have no starting point.