Francesco Panasiti wrote:
I've moved a large GPC project from Mac OSX 10.4 to Snow Leopard (Xcode 3.2, Intel CPU).
Compilation (GNU Pascal 3.4.6u4) is ok, but I can't start debugging from Xcode as I get the following error:
""Exception starting task (/Developer/usr/bin/gdb) ; name: NSInvalidArgumentException, reason: working directory doesn't exist""
With evidence, gdb is looking for the executable in the wrong directory, but I don't know how to workaround that.
Locate the Xcode target executable settings, double-click on it, go to the General tab and choose e.g. "projects directory" for the "Set the working directory to" setting. I assume that will fix it.
Be sure that, when switching the Active build Target, you manually switch the Active Executable, as Xcode doesn't do that automatically for you. I suggest you customize toolbar settings by adding the Active Executable popup menu.
Regards,
Adriaan van Os