Author Topic: GDB Python override environment variables  (Read 1290 times)

Offline Wkerry

  • Multiple posting newcomer
  • *
  • Posts: 43
GDB Python override environment variables
« 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.

Offline ssbssa

  • Single posting newcomer
  • *
  • Posts: 1
Re: GDB Python override environment variables
« Reply #1 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"

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: GDB Python override environment variables
« Reply #2 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org