News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

GDB Python override environment variables

Started by Wkerry, January 02, 2024, 01:02:27 AM

Previous topic - Next topic

Wkerry

Is there any way I can in CodeBlocks remove the default Windows Python environment variables as it is causing GDB to not start until I remove the Windows Python environment variables. I use Windows Python for use in a commercial product.

ssbssa

You can tell gdb that python should ignore all python-specific environment variables with the following arguments:
gdb -eiex "set python ignore-environment"

stahta01

If there is a better value to change the variable to, I would suggest using CB Environmental Variable to set the new value.
I do not use the CB Debugger enough to know if this is a better or worse that the prior suggestion.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]