Debugger Console in Xcode 3.0

Hi there
I have a Cocoa Application I have developed in Xcode, written in Objective-C.
The program basically outputs everything to the debugger console via calls to NSLog. However, I noticed after the last changes I made the debugger console output ends with the text below, after the application exits the controller class' awakeFromNib method.
+*2009-02-15 16:19:10.572 Cocoa3 Quran[4220:10b] Exiting PROC: (QuranController) awakeFromNib*+
+Loading program into debugger…+
+GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct 2 04:07:49 UTC 2007)+
+Copyright 2004 Free Software Foundation, Inc.+
+GDB is free software, covered by the GNU General Public License, and you are+
+welcome to change it and/or distribute copies of it under certain conditions.+
+Type "show copying" to see the conditions.+
+There is absolutely no warranty for GDB. Type "show warranty" for details.+
+This GDB was configured as "i386-apple-darwin".Program loaded.+
+sharedlibrary apply-load-rules all+
+Attaching to program: `/Users/steve/mysoftware/projects/Cocoa3 Quran/build/Release/Cocoa3 Quran.app/Contents/MacOS/Cocoa3 Quran', process 4220.+
Before the last round of changes the program would simply end with the text below.
+*2009-02-15 16:19:10.572 Cocoa3 Quran[4220:10b] Exiting PROC: (QuranController) awakeFromNib*+
Can someone tell me whether the output is likely the result of some error in the application, or whether it is simply the result of some setting I inadvertently turned on?
Thanks

After commenting out some code, I am now getting the following output.
+*2009-02-15 18:03:06.466 Cocoa3 Quran[5240:813] Exiting PROC: (QuranController) awakeFromNib*+
+Program received signal: “EXCBADACCESS”.+
I have pinpointed the problem to the following line.
+SKDocumentRef parent = (SKDocumentRef) [(id) SKDocumentGetParent(doc) autorelease];+
My program uses code from Apple's Search Kit Programming Guide. Apple's sample code makes extension use of NSObject's autorelease method. I understand what this method does and suspect some objects which I expect to access at this point in the program have already been released.
However, I am confused why EXCBADACCESS appears after the program has exited from the awakeFromNib method? By this point the program has finished doing anything meaningful.

Similar Messages

  • Separate Debugger window in XCode 3

    With XCode 3.0 I lost one of my most cherished features...A separate debugger console window when using the All-in-one layout.
    This option is eluding me so far with 3.0. Anybody know how to do this?
    Thanks

    With all project closed, you can look in the preferences --> General --> Layout, you put in All-in-one mod. When you'll open a new project window you'll have a new segmented control in the top left corner of your project window. The first button gives you access to the project page, the other to the debugger page (or window), that's where you can find the consol at the bottom of the window, by default it is folded, so click on the little circle and pull the drawer up to make the console visible.
    However, there's also other options that you can set. Just go in the Preferences again, go in Debugging, there's the local menu "On Start:" in here, choose one of those three option :
    Show Console
    Show Debugger
    Show Console & Debugger
    They roughly do the same thing. Then when you'll click on Build & Go, or just Go, it'll show the console in your project window directly showing you the result.

  • SunStudio11 Copy/Paste in Debugger Console?

    Hi
    I fail to see debugger command line editing in the Debugger Console (Output Window); for example, Copy/Paste works only between other windows but within the Debugger Console itself. Besides, arrow keys to recall command history and to edit a command in place do not seem working.
    So it seems that repetitive typing and backspacing even is the only choice. I hope I'm wrong. Please let me know how to do the "With-in-Debug-Console Copy/Paste" or "Debug-Command-History-Editing" if such things exit.
    Thanks,
    TJ

    This "black magic" does not seem to work in the dbx Console of the IDE. The cursor keys are apparently ignored there. It does only work outside of the IDE in a terminal window, when working with a command line dbx.
    It is however possible to use the emacs key bindings for history recall (i.e. ^P, ^N, ^B, ^F) in the dbx console of the IDE. But this is much less convenient, of course. This is a strange shortcoming, IMHO.

  • [svn:fx-trunk] 13319: Fix FB-25101: Application reported as " unnamed " in the debugger console.

    Revision: 13319
    Revision: 13319
    Author:   [email protected]
    Date:     2010-01-06 18:11:29 -0800 (Wed, 06 Jan 2010)
    Log Message:
    Fix FB-25101: Application reported as ""  in the debugger console.
    Revert revision 11903, which was supposed to fix SDK-22564: Debug player logs RSL sizes to console using main SWF name.  The underlying issue is a Flash player bug (it is sometimes reports incorrect filenames when loading swfs), and my fix was actually a hack to attempt to work around that issue, but it turns out my hack isn't reliable.  Backing out the hack.  I have logged a separate Flash player bug to fix the real issue.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FB-25101
        http://bugs.adobe.com/jira/browse/SDK-22564
    Modified Paths:
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/SwfInfo.java
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/DManager.java
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/DSwfInfo.java
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/events/SwfLoadedEvent.java
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/threadsafe/ThreadSafeSwfInf o.java

  • Where is the iOS6 developer console in Xcode?

    Hi!
    I've signed up for the developer program and downloaded Xcode Version 4.5 (4G108j) so I have iOS6 running in the simulator but I can't see how to get the new console so I can dubug an Xcode app in a similar fashion to the Safari Developer console.
    Any ideas?
    Many thanks

    Pls. use the confidential iOS 6 beta forums, thanks.

  • How do I disable the initial message from GDB when viewing my console in Xcode 4?

    This is the message that is shown before my program's output:
    GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 UTC 2011)
    Copyright 2004 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public License, and you are
    welcome to change it and/or distribute copies of it under certain conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB.  Type "show warranty" for details.
    This GDB was configured as "x86_64-apple-darwin".tty /dev/ttys000
    [Switching to process 28776 thread 0x0]

    That's peculiar because this message would only appear occasionally in xcode 3. I just downloaded xcode 4 and now this happends every time.

  • Xcode debugger stops when NOT going through break

    I have some c++ code, very simple:
    195 MyModelItem *parentItem = thisItem->parent();
    196 if(parentItem == NULL)
    197 {
    198 std::cout << "parentItem is NULL\n";
    199 bool parentIsNull = true;
    200 if(parentIsNull)
    201 return QModelIndex();
    202 return QModelIndex();
    203 }
    204 else if((unsigned int)parentItem == 0x4d0000)
    205 {
    206 std::cout << "parentItem is 0x4d0000\n";
    207 return QModelIndex();
    208 }
    209 else if (parentItem == m_root)
    210 return QModelIndex();
    211
    212 return createIndex(parentItem->row(), 0, parentItem);
    213 }
    I put a breakpoint on line 200 -- the one that is inside the if-clause and says:
    bool parentIsNull = true;
    There is a cout right above that line. So the breakpoint should not be triggered except when parentItem is NULL, and the debugger console should have the "parentItem is NULL" message logged to it.
    But, in fact, the breakpoint gets triggered every single solitary time the function gets called. According to the GDB status reported on the debugger console, it claims that it has stopped at "Breakpoint 1" and that it is "Line 200". Line 200 is indeed the line that I put the breakpoint on, but the little red arrow is not on Line 200, it's on Line 204. If I single-step after the breakpoint stops, it goes to line 209, then the red arrow jumps to the "return" statement which is at the end of the previous function in the file, and then finally to line 213 -- which is one line after the actual return statement.
    So does anyone know any way to get the debugger to behave? To only stop when the breakpoint in question actually gets triggered? It would be nice if the single-step behavior followed what code is supposed to be executing, but I would settle for not stopping at "phantom" triggers.

    When I type "clear" at the gdb prompt, I get a "No source file specified" error...
    I'm not sure that I am being clear on my problem here. I have a breakpoint at line 200. Line 200 is inside the if-clause
    if(parentItem==NULL) { ... }
    I want the program to stop at line 200, but only if parentItem==NULL. In my previous experience with every debugger I've used (including many years using gdb) if you set a break on a line of code that only executes if some condition is true, then the breakpoint only gets triggered, and the program only stops, if the condition is true and the line of code that the breakpoint is on executes. What I am seeing is that Xcode wants to stop at the breakpoint if the line is executed, but also stop at the next line which is executed if that line is not executed. I can set the breakpoint to a log-and-continue state, but then it logs and continues when I want it to stop. I tried setting the condition of parentItem==NULL in the edit breakpoint dialog, but then it says "Error in testing breakpoint condition:"
    When I've seen this behavior before it has been related to not getting optimization turned off. (The optimization makes the whole swath of code disappear, and so the debugger just kinds improvises on the line numbers and stops whenever you are in the vicinity.) But I have checked the project settings over and over, and it's set debug, and optimization is set to NONE, and I just can't see anything else to turn on/off to get breakpoints to work.

  • Unable to Run C Program using Xcode "Stop Executable"

    Hi All
    Have been using the Terminal to compile programs built through Xcode but now want to use Xcode itself. Everytime I press build and go it builds successfully but won't run. I found a tutorial that mentioned if you are using Xcode 3.0 (I am) you can't use build and run, for output, you have to go to run and then push console.Ok that works. I then found someone with the same issue as mine everytime you want to build and run it appears with another window saying "Stop Executable"They were told to make sure they were building the .c file in a project and not building it from a text editor and then importing. I always build new projects.
    I want to interact with the program not just see its output? so my question is can I interact with programs i.e. User can enter data or strings or, do I have to build an interface to do this through Xcode. I Also forgotten to mention I found information through the forum that said to go to First Aid through utilities and repair file permissions, this has been done but still does not work. Many thanks for your time and as you can probably tell I am new to Xcode.

    To run your command-line program in Xcode, open the debugger console by choosing Run > Console. Run your program by choosing Run > Run or Build > Build and Run. You'll have to build and run if you haven't compiled the program before. Your program will run, and you will see output in the console. You interact with the program from the console.
    If you're not able to enter input in the console, choose Run > Sync with Debugger. If doing that doesn't work, you can run your program in the Terminal application by double-clicking the program from the Finder. It's less convenient than running it in Xcode, but you'll at least be able to run the program and interact with it.

  • XCode-Debugging  Where is Step Over/Into/Out

    I have been racking my brain... and trying different things... but I just can't find them.
    I am "new" (as of two months ago), to this development environment.
    I am able to get into the debugger, with brakepoints...
    However, I can not step Over/Into/Out to walk through my code.
    I see that they are available in the examples from the book I purchased:
    "COCOA Programming for the Mac OS X Third Edition"
    But they are not appearing in my Debugger Console or in the XCode main window.
    I have tried customizing the tool bars to no avail.
    So for the simple questions:
    1) How can I get the buttons up on the tool bar
    2) Are there shortcut keys (like F-keys) to do the same functions.
    I'll take either one at this time.

    Yah know....
    This is Murphy's law...
    The moment I post the silly question...
    I find the answer.
    -) I was never 'in' the actually debugger, just the debugger console.
    Now that I found that out... all of the buttons and what I have been looking for is there...
    Argg.... hate when I do that.

  • Console window and debugging in  ME platform SDK 3.0

    Hi All!
    I've just started to use new ME platform SDK 3.0. I've imported my WTK 2.5 project and faced unexpected problems.
    1) Cannot find debug console window ( where System.out.println() output goes to).
    2) Cannot Run Main project in debug mode, although I can run it using Run Main project (F6) and it works fine.
    Could anybody point me the solution?
    Thanks in advance.

    Hi,
    output console is in Window -> Output or Ctrl+4 shortcut
    Run in debug mode is a little bit confusing in jmesdk 3.0. It just starts an emulator in debug mode. Basically it does the same like commandline emulator.exe -Xdescriptor:<path to jad> -Xdebug -Xrunjdwp:transport=dt_socket,address=<port>,server=y,suspend=n.
    Jmesdk 3.0 doesn't contain debugger console and is expected that user will connect to emulator runnning in debug mode using his preferred gui debugger (netbeans, eclipse etc.)

  • How to enable script debugger in adobe LC designer

    Hi,
    Can anybody tell me how to enable script debugger in adobe livecycle designer. Can we debug the java scripts in adobe desiger..if yes, then please let me know how do i do it.
    I want to  debug the code line by line.
    Regards
    Sunil

    Designer doesn't have a debugger like Acrobat.
    The script editor can check only if the syntax is correct.
    You generally can use the PDF-Preview to debug JavaScripts when  Acrobat is your current PDF-Viewer.
    Add this code in you script where you want to start debugging. It will call Acrobat's JS Console
    debugger;
    console.show();

  • Can't debug in XCode 3.1 on Leopard

    Hi
    I'm having some trouble getting the debugger working in XCode 3.1 on Leopard (10.5.2) running on a 1st gen MacBook. I can still run the program, just not debug it. This happens across all my projects.
    Same code debugs fine on Tiger, anyway here is what the run log says:
    <paste>
    Loading program into debugger…
    GNU gdb 6.3.50-20050815 (Apple version gdb-908) (Tue Mar 11 10:11:42 UTC 2008)
    Copyright 2004 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public License, and you are
    welcome to change it and/or distribute copies of it under certain conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB. Type "show warranty" for details.
    This GDB was configured as "i386-apple-darwin".
    tty /dev/ttys000
    Program loaded.
    sharedlibrary apply-load-rules all
    run
    [Switching to process 392 local thread 0x2f13]
    /bin/bash: line 0: exec: arch: not found
    </paste>
    That last line seems to be the problem, but I don't know where that code runs. It sounds like it is a shell script of some sort that bails on the first line.
    Running arch from the terminal outputs i386, which seems correct.
    The program then just hangs and apparently does nothing, and the only way to exit is by clicking the stop sign.
    My base SDK is 10.4, I've googled this problem without success.
    Has anyone seen this before?
    Any input at all would be greatly appreciated.
    Thanks in advance,
    Alexander

    After googling some more I came across this:
    http://www.cocoabuilder.com/archive/message/xcode/2008/3/29/20567
    There Jim Ingham writes:
    {quote:title=}{quote}
    You can get gdb to avoid the use of arch altogether by making a file
    called .gdbinit in your home directory, and put:
    set start-with-shell 0
    ...and that did the trick for me!
    I'm now able to debug again, so I'm marking this as solved.

  • EOF Character for XCode on a Mac

    I am a teacher that is currently teaching programming in C++ for a high school class. I used to use CodeWarrior and now I am using XCode. One of the programs that my students have to write is waiting for an End Of File character to quit the program. What combination is this for the Mac? In Windows, it is ctrl-z. In UNIX it is supposedly ctrl-d. I thought the UNIX one would work, but it does not. Does any one have an idea of what key combination to use for the EOF?

    Aaaah. The perennial EOF question again. I think you are assuming that the run console in Xcode is a full-on Unix shell environment. It is not.
    But ctrl-D works admirably as EOF for any Unix command-line app built with Xcode that expects an EOF to end data input. If you run it in a Unix shell.
    Don't feel bad. This is not particularly well documented as such. Even if they documented it really well, you would never be able to find it amid all the other documentation without knowing what to search for. Xcode is not Unix. Heck, in OS X, even Unix is not Unix. But by golly, the EOF part works.

  • N00b Xcode Question

    I hit build and go on the hello world Standard Tool Project.
    But nothing comes up, what am I doing wrong?

    wow, i'm an idiot, i didn't have the Debugger Console open, fixed, sorry.

  • JAVA_HOME is not defined correctly

    Hi everyone.
    I'm trying to run a java program I made for school but I keep getting the message in the debugger console:
    [ Session started at 2010-09-07 01:52:54 -0400. ]
    Error: JAVA_HOME is not defined correctly.
    We cannot execute /System/Library/Frameworks/JavaVM.framework/Home/bin/java
    The Debugger has exited with status 1.The Debugger has exited with status 1.
    I'm working with Xcode 3.2.3 and the java template is Java Tool. Can anyone help me fixing this?
    Thank you very much

    Grrrr. Been having a similar problem, but with Maven2. Allow me to (hopefully) save someone the gnawing of teeth and several bald patches.
    For starters, the Maven documentation gives you a pretty clear example of how to set your PATH. This is as follows:
    export PATH=/usr/whatever/whateveragain/apache-maven-2.0.10/bin:$PATH
    Simple, eh? Note the colon before $PATH. Then, it states quite presumptuously "4) Make sure JAVA_HOME is set to the location of your JDK". However, you don't set it in exactly the same way. You set it in virtually the same way, except without the colon, like this:
    export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0$JAVA_HOME
    Note that if you get the paths wrong a couple of times, you may reset them with the unset command. So to unset JAVA_HOME you'd use:
    unset JAVA_HOME
    After which you may set it again. As is advised, you may try to set the user privileges, but they didn't seem to affect my luck at all. Hope this helps!

Maybe you are looking for

  • Where can i get my cracked screen fixed for the lowest price?

    Ha

  • Problem quitting itunes

    I recently downloaded some songs from the cloud to my computer. I paused the downloads because I had to go somewhere, and when I resumed, it looked like it had locked up (looked kinda glitchy), so I thought if I hit "pause all", disconnected the inte

  • I canu00B4t configure the data supplier targets.

    Good Morning. I have a system SAP ABAP + JAVA Netweaver 2004s, with Windows 2003 Server and Oracle 10g. When, I try to configure the data supplier targets, of the SLD. I have the following message error: Can't store new target Error during write acce

  • Wristband plastic clip holder for Sony Ericsson Live View Android Watch broken

    i have recently brought a new Sony Ericsson Live View Android Watch and the wristband which holds a plastic frame in it which holds watch got broken some how....so now i need another plastic ....what should i do about it????????????

  • Sort of Change Pointer on CRM

    Hi all, I want to send difference value of master and transaction data like ALE Change pointer from CRM to Customer system. Can you tell us available function ? The IDoc sending mechanism of CRM is different from ALE of R/3. CRM creates Change docume