Re: execution doesn't halt at breakpoints when debugging custom executable
Re: execution doesn't halt at breakpoints when debugging custom executable
- Subject: Re: execution doesn't halt at breakpoints when debugging custom executable
- From: "Emile Tobenfeld (a. k. a Dr. T)" <email@hidden>
- Date: Fri, 30 Mar 2007 13:51:10 -0400
I'm not sure if my experience is relevant to your problem.. I'm
developing plug-ins and most of my code is in a common library that
is linked in to each filter. I find that breakpoints don't work in
the common library, and, when I need to debug a file in the common
library, I often add it to the filter as well so I can breakpoint
inside it.
At 10:36 AM -0700 3/30/07, Martin S. Boswell wrote:
Xcode Users,
I'm trying to debug a custom executable for a vanilla C command-line
tool that is compiled with a makefile. The problem is that
execution does not halt/pause at breakpoints.
Although the problem originated in a different source set, for the
purposes of solving this problem, I'm trying to get this to work on
a very simple 10 line C file (at bottom). Using Mac OS X 10.4.9,
Xcode 2.4.1 on a PowerMac G5 2x2.7 (same behavior on 2 other similar
machines).
When I follow the very simple procedure, execution does not halt at
the breakpoints - although "sound out and auto-continue" does work.
That is, I get the audio alert, but if I un-check the auto-continue
checkbox in the Breakpoint window, it will not pause. These are the
steps I take:
1) create a new empty project
2) add the executable to the Executables section of the Project window
(see
http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeUserGuide/Contents/Resources/en.lproj/06_01_db_executable/chapter_39_section_4.html)
OK, now I should be able to set standard breakpoints to pause
execution. I set regular breakpoints and execution does not pause.
In the test program below, when execution reaches the scanf and
waits for input, I can click the pause button and examine source,
variables, etc. Breakpoints on any lines will not halt execution.
If I follow the same procedure on a 10.3.9 machine running Xcode
1.1, it works fine, i.e. execution pauses at the breakpoints.
So, I've been unable to find any references to this problem
anywhere. Am I missing something? Is this a known problem? Any
other ideas? Thanks for taking the time to consider this.
- Martin
--
Martin S. Boswell
Center for Functional Imaging
Lawrence Berkeley National Laboratory
One Cyclotron Road, MS55R0121
Berkeley, CA 94720
email@hidden
Phone: (510) 486-6187
Fax: (510) 486-4768
-----------------------
Makefile:
all:
cc -g -O0 ron.c -o ron
-----------------------
ron.c file:
# include <stdio.h>
int main () {
int x = 14 ;
int y = 1 ;
int z ;
printf("line 1\n") ;
printf("line2\n") ;
printf("Enter Z: ") ;
scanf("%d", &z ) ;
printf("X value: %d, Y value: %d, Z value: %d\n", x, y, z) ;
return 0 ;
}
_______________________________________________
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
--
"The test of a first-rate intelligence is the ability to hold two
opposed ideas in the mind at the same time, and still retain the
ability to function."
F. Scott Fitzgerald
Visit "Before the Fall -- Images of the World Trade Center" at
http://www.foryourhead.com
Emile Tobenfeld, Ph. D.
Video Producer Image Processing Specialist
Video for your HEAD! Boris FX
http://www.foryourhead.com http://www.borisfx.com
_______________________________________________
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