Question: Debugging

j_mie6

Deity
Joined
Dec 20, 2009
Messages
2,963
Location
Bristol (uni)/Swindon (home)
I know how to debug C++ code in game and I discovered the the python debugger has a simmilar look (after using it to debug some personal code). the question is how do I use the python IDLE debugger to debug in game code? I need an idea of what is going on in my code
 
I didn't even know that Idle has a debugger included ^^ (seems only since 2.7).

I've only tried to debugged Civ4 python code with the HAP debugger, but that's imho not really comfortable.
If you really want to, then download it (click), open the respective Python file with it, set your breakpoints, activate the debugger in your BtS main .ini file, and fire up Civ4 (windowed mode).
The game will then freeze everytime you hit one breakpoint (can be annoying if it's at the end of a turn and you don't notice it, because you'll just wait and wonder what's going on; else sure normal behaviour).


Also don't forget to deactivate the debugger in the .ini again, else you'll get a CtD on start.
 
I downloaded but it won't work, it says that I am missing some DLL from my computer...
 
It says I am missing MSVCR71.dll from my computer... any idea what that is?
 
after a short search on my PC...take a look into your BtS directory, and copy it over :D.
Seems to be also included in Visual C++.

According to a short websearch it's some C++ library :dunno:.


And in case it's not clear: Never ever download missing .dll files from obscure websites in the web. These are with nearly 100% likelyhood infected with some crap.
 
thanks! I will try it.

Now it says it is missing MFC71.dll is missing and that isn't in my bts lol
 
Problem is I don't have one in my VC++ or my System32! sigh...
 
Back
Top Bottom