• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
execution doesn't halt at breakpoints when debugging custom executable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

execution doesn't halt at breakpoints when debugging custom executable


  • Subject: execution doesn't halt at breakpoints when debugging custom executable
  • From: "Martin S. Boswell" <email@hidden>
  • Date: Fri, 30 Mar 2007 10:36:20 -0700

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


  • Follow-Ups:
    • Re: execution doesn't halt at breakpoints when debugging custom executable
      • From: Jim Ingham <email@hidden>
    • Re: execution doesn't halt at breakpoints when debugging custom executable
      • From: "Emile Tobenfeld (a. k. a Dr. T)" <email@hidden>
  • Prev by Date: Re: Fixing line endings
  • Next by Date: Re: execution doesn't halt at breakpoints when debugging custom executable
  • Previous by thread: Re: gdb crashing
  • Next by thread: Re: execution doesn't halt at breakpoints when debugging custom executable
  • Index(es):
    • Date
    • Thread