/2013/10/02/Xcode--How-to-set-environment-variable-for-debugging/
{"item":{"status":"visible","url":"\/2013\/10\/02\/Xcode--How-to-set-environment-variable-for-debugging\/","trash":"","name":"Xcode--How-to-set-environment-variable-for-debugging","parent":"","title":"Xcode: How to set environment variable for debugging","date":"2013-10-02 19:34:40","filepath":"posts\/20131002_Xcode--How-to-set-environment-variable-for-debugging.xml.json","type":"post","content":"<p><img style=\"float: left; margin-left: 10px; margin-right: 10px;\" src=\"http:\/\/www.8bitrobot.com\/media\/uploads\/xcode.png\" alt=\"\" width=\"72\" \/>Say you have an application that makes a simple getenv() call to check an environment variable and you want to test it during runtime in the Xcode IDE debugger. How do you tell <strong>Xcode 4.6<\/strong> to supply the environment variable?<\/p>\n<p>It's hidden away in the schema. So, edit your schema and choose the \"Run YourApp\" item on the left panel. Then add an environment variable in the table to the right.<\/p>\n<p style=\"text-align: center;\"><em>~<\/em><\/p>\n<p><em>Working on any mildly complex project is a nightmare. Sure, Apple is all about minimalism, but those headers are descriptive and are useful when trying to describe solutions to project configurations. Scanning StackOverflow's Xcode questions reveal a funny but sad mix of \"the left panel\" or \"<a href=\"http:\/\/stackoverflow.com\/a\/6210437\/813249\">the second-to-left panel.<\/a>\"<\/em><\/p>\n<p><em>The Xcode IDE is a dirty joke that makes the life of a developer worse. The time spent in Xcode config land versus actually being productive creating something is obscene.<\/em><\/p>"}}