Code::Blocks Forums

User forums => Help => Topic started by: Wkerry on January 02, 2024, 01:02:27 am

Title: GDB Python override environment variables
Post by: Wkerry on January 02, 2024, 01:02:27 am
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.
Title: Re: GDB Python override environment variables
Post by: ssbssa on January 25, 2024, 05:22:25 pm
You can tell gdb that python should ignore all python-specific environment variables with the following arguments:
Code
gdb -eiex "set python ignore-environment"
Title: Re: GDB Python override environment variables
Post by: stahta01 on January 25, 2024, 05:39:08 pm
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.