|
Related Topics:
| Debugging into static libraries with XCode... - Hi everyone, I'm having a lot of trouble debugging into static libraries - no matter what I do, when I hit on a line that should go into a function inside my .a file, it refuses to enter the function. If I instead set a inside of..
Debugging tool to complete gcc and gdb on OS X - We are porting a compiler to OS X (poplog compiler) and have to deal with a lot of assembly to trace and debug. We can trace the execution with gdb of the assembly code generated by gcc with the -g option, but can't see the content of as we do..
How do I use CVS with Xcode? - [ My apologies if this is I don't know whether my ISP's news server is set up right. ] I want to use Xcode to help manage the files in a PHP project I'm working on. There were a couple of files available for Project Builder to get it to..
How do I use CVS with Xcode? - [ My apologies if this is I don't know whether my ISP's news server is set up right. ] I could use some help figuring out how to use CVS with Xcode! I set up my CVS and imported my source code files into CVS and checked them..
gcc 3.4.4 on Xcode 1.5 - Hello, How can I use gcc 3.4 on Xcode 1.5? gcc 3.4.4 is installed @ But, There is no gcc version setting option in Xcode 1.5. Please, help me.
|
|
|
Next: Tools: Thanks! Textmate rocks!
|
| Author |
Message |
External

Since: Feb 08, 2007 Posts: 7
|
(Msg. 1) Posted: Tue Jan 16, 2007 3:08 am
Post subject: debugging c++ under XCode 2.2 Archived from groups: comp>sys>mac>programmer>tools (more info?)
|
|
|
Hi,
I'm debugging a project written in C++. It comprises six dylibs and an
executable. The dylibs are not loaded dynamically, they are linked to
at compile time, and hence alll loaded everytime the executable is
debugged.
I can run into code in these dylibs ok. My breakpoints are hit
correctly, but "step over" and "step into" do not behave as expected.
Step over often just behaves like "Continue", instead of stepping to
the next line of code. Step into often does the same, but not in any
kind of consistent way.
I have switched Optimization to "None" in the project settings
(incidentally, I can only find build settings for the project as a
whole, not for individual targets, e.g. mylib2.dylib...?). This does
not help.
Is there some setting in XCode I am missing, or is this behaviour
typical for GDB stepping in and out of separate targets. Has anybody
seen this behaviour before?
Thanks in advance for any help! =)
-scott >> Stay informed about: debugging c++ under XCode 2.2 |
|
| Back to top |
|
 |  |
External

Since: Feb 08, 2007 Posts: 7
|
(Msg. 2) Posted: Wed Jan 17, 2007 6:32 am
Post subject: Re: debugging c++ under XCode 2.2 [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
scott wrote:
> Hi,
>
> I'm debugging a project written in C++. It comprises six dylibs and an
> executable. The dylibs are not loaded dynamically, they are linked to
> at compile time, and hence alll loaded everytime the executable is
> debugged.
>
> I can run into code in these dylibs ok. My breakpoints are hit
> correctly, but "step over" and "step into" do not behave as expected.
> Step over often just behaves like "Continue", instead of stepping to
> the next line of code. Step into often does the same, but not in any
> kind of consistent way.
>
> I have switched Optimization to "None" in the project settings
> (incidentally, I can only find build settings for the project as a
> whole, not for individual targets, e.g. mylib2.dylib...?). This does
> not help.
>
> Is there some setting in XCode I am missing, or is this behaviour
> typical for GDB stepping in and out of separate targets. Has anybody
> seen this behaviour before?f
>
> Thanks in advance for any help! =)
>
> -scott
for the benefit of any new XCode users searching this group:
I found target specific settings. Select a target in the main XCode
project browser, then choose Project/Edit Active Target. Switching off
optimisation in there, for each target, fixes the random debugger
behaviour. I find it off that debug builds dont have optimisation
switched off by default, but there you go. >> Stay informed about: debugging c++ under XCode 2.2 |
|
| Back to top |
|
 |  |
External

Since: Feb 08, 2007 Posts: 7
|
(Msg. 3) Posted: Fri Jan 19, 2007 3:17 am
Post subject: Re: debugging c++ under XCode 2.2 [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Sorry to come back on and re-open this, but setting optimisation to
None on all my targets has only *improved* debugging.
Has anybody else encountered "Step Over" and "Step Into" just
continuing execution, and not behaving as expected?
I am using XCode 2.2 on OSX.4.8 on a i386 Mac Book
-scott >> Stay informed about: debugging c++ under XCode 2.2 |
|
| Back to top |
|
 |  |
External

Since: Jan 05, 2004 Posts: 498
|
(Msg. 4) Posted: Wed Jan 24, 2007 11:53 pm
Post subject: Re: debugging c++ under XCode 2.2 [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
In article <1169205462.470609.35370 RemoveThis @s34g2000cwa.googlegroups.com>,
"scott" <scott.wakeling RemoveThis @gmail.com> wrote:
> I am using XCode 2.2 on OSX.4.8 on a i386 Mac Book
You should upgrade to Xcode 2.4.1 for starters. >> Stay informed about: debugging c++ under XCode 2.2 |
|
| Back to top |
|
 |  |
External

Since: Feb 08, 2007 Posts: 7
|
(Msg. 5) Posted: Mon Jan 29, 2007 3:45 am
Post subject: Re: debugging c++ under XCode 2.2 [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On 25 Jan, 04:53, Sean McBride <cwat....DeleteThis@cam.org> wrote:
> In article <1169205462.470609.35....DeleteThis@s34g2000cwa.googlegroups.com>,
>
> "scott" <scott.wakel....DeleteThis@gmail.com> wrote:
> > I am using XCode 2.2 on OSX.4.8 on a i386 Mac BookYou should upgrade to Xcode 2.4.1 for starters.
My colleague upgraded to XCode 2.4 and had the same problems. >> Stay informed about: debugging c++ under XCode 2.2 |
|
| Back to top |
|
 |  |
|