/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. &nbsp;How do you tell <strong>Xcode 4.6<\/strong> to supply the environment variable?<\/p>\n<p>It's hidden away in the schema. &nbsp;So, edit your schema and choose the \"Run YourApp\" item on the left panel. &nbsp;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. &nbsp;Sure, Apple is all about minimalism, but those headers are descriptive and are useful when trying to describe solutions to project configurations. &nbsp;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. &nbsp;The time spent in Xcode config land versus actually being productive creating something is&nbsp;obscene.<\/em><\/p>"}}
comments powered by Disqus
 

Lorem Ipsum

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Lorem

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

 
This page is best viewed with Firefox 3.5+, Chrome 5+, Safari 5+, Opera 10.6+, IE 9+
Copyright © 2014 8bitrobot.com