RE: Second instance of Xcode also open first instance's project
RE: Second instance of Xcode also open first instance's project
- Subject: RE: Second instance of Xcode also open first instance's project
- From: "Lars C. Hassing" <email@hidden>
- Date: Wed, 09 May 2012 11:30:41 +0200
- Acceptlanguage: da-DK
- Thread-topic: Second instance of Xcode also open first instance's project
Jens Alfke wrote:
> Oh, and I also meant to say: This isn't going to do what you expect.
> Apps don't inherit the environment of a shell that spawns them,
> because the app process isn't a child of the shell.
> Apps are all children of the per-user 'launchd' process.
It IS doing what I expect, I have been doing this for years (until Lion).
man open says: "Opened applications inherit environment variables
just as if you had launched the application directly through its full path"
So Xcode and the debugged program inherit the Terminal window's environment.
The programs I want to debug are not "apps", but simple executables
(Xcode calls them "Command Line Tools"). The programs are part of a server system
and are spawned as needed by a number process managers.
Search paths and other info are inherited from the specific father process,
so when I debug a program I set up a suitable local environment and launch Xcode.
Why don't I attach to the program already running in its right environment ?
It is much faster to start and I can restart over and over again.
Multiple instances of Xcode 3.2.5 (and earlier) works fine.
When I switched to Lion/Xcode 4.3 it still seems to work,
except that I get THREE projects though I only open two.
Should it no longer be possible to debug two programs at the same time
each having different environment ?
/Lars
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden