Xcode 4, LLDB compiler & debugging

With GDB, years of practice taught me to type into console during a debugging session to print out the contents of a local variable. Often this was easier than poking around the variables pane opening objects etc. So in the console window I could type "po <some object>" and get what I want. When I try to do this with LLDB I get an error message about the variable not being defined in the frame. Switching compilers back to GDB gives me the old behavior
So, the question is, is there a way to get the old behavior with LLDB or do I have to use the UI for inspection?
Thanks!
TB

For some unknowable reason, I no longer am getting errors when I try to print a local variable in console. So everyone out there, thanks anyway!

Similar Messages

  • How can I use PreloadSWF with files built with -compiler.debug into Flash Player 11.4?

    I'm using Internet Explorer 9 on Windows 7 (x64) with a debug Flash Player (version 11.3.300.271 - I'm using the ActiveX plugin for IE). Using Flex SDK 4.5.1.21328A I compiled the ActionScript code
        package MySample {
            import flash.display.Sprite;
            public class MyHook extends Sprite {
                public function MyHook(): void {
                    super();
    Into a `.swf` file by running the command
        mxmlc.exe -compiler.source-path=. -output=MyHook.swf -tools-locale=en -headless-server=true -static-link-runtime-shared-libraries -compiler.debug -- Sample\MyHook.as
    I then preload this by creating an mm.cfg file and adding an PreloadSwf entry referencing MyHook.swf; running all this in Flash Player 11.3.300.271 works fine; I can point my IE to some web page containing flash applets and my own SWF file is preloaded just nicely.
    However, the most recent Flash Player release on Windows (11.4.402.265) breaks this. After updating the player, any flash applet triggers error message boxes from Flash player saying "Verify Error #1014: Couldn't find spark.components.Application". Clicking the error away opens the same message box, but with a few different type names.
    The workaround I found was to remove the -compiler.debug switch from the mxmlc command line; doing so make things work with Flash Player 11.4 but alas trace() doesn't work anymore.
    Does anybody know how PreloadSWF can be used to preload debug SWF files into Flash Player 11.4?

    Ah, thanks for making me aware of that forum - I didn't know about it. I now reposted the question at http://forums.adobe.com/thread/1068071 - this thread can be closed as far as I'm concerned. Should I mark your answer as being the resolution to my question or the like?

  • Compile debug causes package to become invalid

    We're running 10.2.0.4.0 and I have a large package (7730 lines) which compiles fine on it's own. However, if I try to enable debug mode, I get an error:
    SQL> alter package mypkg compile debug package;
    Warning: Package altered with compilation errors.
    SQL> show errors;
    No errors.
    If I perform another alter command without the debug parameter, then it compiles fine:
    SQL> alter package mypkg compile package;
    Package altered.
    Also, if I compile this package using the "Compile for Debug" button in SQL Developer then I actually get an error message:
    Error(1): PLS-00707: unsupported construct or internal error [2603]
    Does anyone have any idea what's going on here? I've spent the past couple days searching for a solution and while I've seen many cases of people having the PLS-00707 error, I wasn't able to find anyone who only receives it when compiling for debug.

    SQL> CONN SCOTT
    Connected.
    SQL> SELECT * fROM V$VERSION;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    PL/SQL Release 9.2.0.1.0 - Production
    CORE 9.2.0.1.0 Production
    TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
    NLSRTL Version 9.2.0.1.0 - Production
    SQL> ALTER PACKAGE P1 COMPILE DEBUG;
    Package altered.
    SQL> alter session set events='10938 trace name context level 14';
    Session altered.
    SQL> SELECT P1.ADD_NUM(5,6) FROM DUAL;
    SELECT P1.ADD_NUM(5,6) FROM DUAL
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    SQL> SELECT NAME FROM V$DATABASE;
    SELECT NAME FROM V$DATABASE
    ERROR at line 1:
    ORA-03114: not connected to ORACLE
    SQL> SELECT SYSDATE FROM DUAL;
    SELECT SYSDATE FROM DUAL
    ERROR at line 1:
    ORA-03114: not connected to ORACLE
    can one tell me how to solve this problem? thanks in advance.

  • Is there any IDE for compiling/debugging FlasCC apps?

    I want to use FlasCC for a large project, but I have no experience with GDB. Is there an IDE for FlasCC out there so I can do the compiling/debugging things (mostly debugging)? Or could anyone tell me how to configure one (like eclipse)?

    Since all iTunes content, with the exception of purchased ringtones, can be re-downloaded for free, your apps are already available from the "cloud" so to speak.

  • Xcode will not compile

    I migrated from Windows C++(Dev C++) to Mac (Xcode) and Xcode will not compile, the command for it is greyed out (not selectable). Even Hello World Wouldn't compile. What am I doing wrong here?
    (this is an empty C++ file that's been opened)

    What kind of application do I want to open for basic C++. I've tried numerous now and I always get at least one error of conflicting commands.

  • Xcode as a compiler

    How can i use xcode 4 to compile basic c programs to run in terminal, I am 14 and I have been using Macvim as a basic compiler but now it does not work.

    im sorry but where do i type this, where should i write the executable, thanks

  • Xcode 4 clang compiler flag -std=c++0x -stdlib=libc++

    Hi,
    I just bought Xcode 4 and I wanted to play a bit with the c++0x feature that are implemented at the moment in clang, there is not alot but some is there.
    I am compiling with those flag: -std=c++0x -stdlib=libc++
    This -stdlib=libc++ is to enable the rewrite of stl for clang, unfortunatly if i enable it clang can't find any std include. In example a simple program outputing a literal string to the console won't find <iostream>.
    And From this website (http://clang.llvm.org/cxx_status.html) the variadic template should be implemented and working, but it fail to understand the expression.
    Any body managed to use clang c++0x feature? and use the std lib libc++?
    thanks
    Mani

    I am building from Xcode 4 and in the Other C++ Flags I put -std=c++0x -stdlib=libc++ and the build error is this:
    CompileC /Users/mani/Library/Developer/Xcode/DerivedData/Cxx0xFun-gohuisfbbejatlagnjpymgabgyxg/Build/Intermediates/Cxx0x_Fun.build/Debug/Cxx0x _Fun.build/Objects-normal/x8664/main.o Cxx0x_Fun/main.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/mani/Documents/Mani_Devel/_Development/Xcode4_TestCxx0x/Cxx0xFun
    setenv LANG en_US.US-ASCII
    /Developer/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-print-source-range-info -fdiagnostics-show-category=id -fdiagnostics-parseable-fixits -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wparentheses -Wswitch -Wno-unused-parameter -Wunused-variable -Wunused-value -DDEBUG -isysroot /Developer/SDKs/MacOSX10.6.sdk -fasm-blocks -mmacosx-version-min=10.6 -gdwarf-2 -fvisibility=hidden -fvisibility-inlines-hidden -iquote /Users/mani/Library/Developer/Xcode/DerivedData/Cxx0xFun-gohuisfbbejatlagnjpymgabgyxg/Build/Intermediates/Cxx0x_Fun.build/Debug/Cxx0x _Fun.build/Cxx0xFun-generated-files.hmap -I/Users/mani/Library/Developer/Xcode/DerivedData/Cxx0xFun-gohuisfbbejatlagnjpymgabgyxg/Build/Intermediates/Cxx0x_Fun.build/Debug/Cxx0x _Fun.build/Cxx0xFun-own-target-headers.hmap -I/Users/mani/Library/Developer/Xcode/DerivedData/Cxx0xFun-gohuisfbbejatlagnjpymgabgyxg/Build/Intermediates/Cxx0x_Fun.build/Debug/Cxx0x _Fun.build/Cxx0xFun-all-target-headers.hmap -iquote /Users/mani/Library/Developer/Xcode/DerivedData/Cxx0xFun-gohuisfbbejatlagnjpymgabgyxg/Build/Intermediates/Cxx0x_Fun.build/Debug/Cxx0x _Fun.build/Cxx0xFun-project-headers.hmap -I/Users/mani/Library/Developer/Xcode/DerivedData/Cxx0x_Fun-gohuisfbbejatlagnjp ymgabgyxg/Build/Products/Debug/include -I/Users/mani/Library/Developer/Xcode/DerivedData/Cxx0xFun-gohuisfbbejatlagnjpymgabgyxg/Build/Intermediates/Cxx0x_Fun.build/Debug/Cxx0x _Fun.build/DerivedSources/x8664 -I/Users/mani/Library/Developer/Xcode/DerivedData/Cxx0xFun-gohuisfbbejatlagnjpymgabgyxg/Build/Intermediates/Cxx0x_Fun.build/Debug/Cxx0xFun.build/DerivedSources -F/Users/mani/Library/Developer/Xcode/DerivedData/Cxx0x_Fun-gohuisfbbejatlagnjp ymgabgyxg/Build/Products/Debug -std=c++0x -stdlib=libc++ -c /Users/mani/Documents/Mani_Devel/_Development/Xcode4_TestCxx0x/Cxx0x_Fun/Cxx0xFun/main.cpp -o /Users/mani/Library/Developer/Xcode/DerivedData/Cxx0xFun-gohuisfbbejatlagnjpymgabgyxg/Build/Intermediates/Cxx0x_Fun.build/Debug/Cxx0x _Fun.build/Objects-normal/x8664/main.o
    /Users/mani/Documents/Mani_Devel/_Development/Xcode4_TestCxx0x/Cxx0x_Fun/Cxx0xFun/main.cpp:9:10: fatal error: 'iostream' file not found [1]
    #include <iostream>
    ^
    1 error generated.
    #include <iostream>
    #if _has_feature(cxx_variadictemplates)
    template<typename... T>
    struct A
    static unsigned const size=sizeof...(T);
    #else
    #endif
    int main (int argc, const char * argv[])
    #if _has_feature(cxx_variadictemplates)
    A<int,int,int>::size;
    // insert code here...
    std::cout << "Hello, World!
    #endif
    return 0;
    Thanks for your help.

  • Xcode won't stop debugging

    My Xcode won't let me 'just run' my projects. It always forces me into debugging mode even when I only press apple-R or choose one of the 'Run' options from the menu bar.
    It didn't used to be like this, and I can't test my code with it doing this, which makes it totally useless to me if I can't get it to go back to the way it was.
    Anybody got any ideas?

    Hi--
    Welcome to the Apple Discussions.
    It sounds to me like your app is crashing. You'll always drop into the debugger like that if there's a crash, even if you choose an option from the menu bar that would not invoke the debugger normally.
    charlie

  • Xcode errors on compile

    Hello,
    I'm trying to compile some sample code from a book on objective C. I've got xcode 4.2 installed on my old macbook pro with snow leopard (10.6.8, 32 bit core duo). I compiled the code on another macbook pro with lion and the code ran just fine with no errors. It looks like a syntax error of some kind but everything was copy/pasted and I even set xcode to run as 32 bit since the default is 64. Any ideas?

    also.. that doesn't really explain why it would run on another computer but not this one.. Is it a feature that can only be run on the 10.7 sdk? or Lion?

  • XCode won't compile

    This project used to compile for me on a different computer. That computer is gone now, and I've moved the project to a new computer. I have not changed anything at all about the project, but when I try to build it now, I get 3,626 error messages that start off with this:
    cd /Users/jesse/VersionControl/JaCK3/trunk/c++/fmbridge
    /usr/bin/gcc-4.0 -x c++-header -arch ppc -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -fmessage-length=0 -mtune=G5 -fvisibility-inlines-hidden -mmacosx-version-min=10.4 -I/Users/jesse/VersionControl/JaCK3/trunk/c++/fmbridge/build/JaCK3.build/Deploy ment/version8lib.build/version8lib.hmap -F/Users/jesse/VersionControl/JaCK3/trunk/c++/fmbridge/build/Deployment -F/Users/jesse/VersionControl/JaCK3/trunk/c++/fmbridge/../Libraries -I/Users/jesse/VersionControl/JaCK3/trunk/c++/fmbridge/build/Deployment/include -I/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks -I/Users/jesse/VersionControl/JaCK3/trunk/c++/fmbridge/build/JaCK3.build/Deploy ment/version8lib.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.4u.sdk -c /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h -o /Library/Caches/com.apple.Xcode.1028/SharedPrecompiledHeaders/Carbon-hadzljfzkp pjveajhqnujmgoizvu/Carbon.h.gch
    /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20:39: error: CoreServices/CoreServices.h: No such file or directory
    /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24:53: error: ApplicationServices/ApplicationServices.h: No such file or directory
    In file included from /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Head ers/HIToolbox.h:25,
    from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:29:
    /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Heade rs/HIObject.h:24:43: error: CoreFoundation/CoreFoundation.h: No such file or directory
    In file included from /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Head ers/HIToolbox.h:33,
    from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:29:
    /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Heade rs/HIGeometry.h:20:39: error: CoreGraphics/CoreGraphics.h: No such file or directory
    etc....

    Jesse Barnum wrote:
    Sorry, I appreciate your help and should have thought more carefully about offending people.
    No offense taken. It is just that many people who post here only do so out of frustration and really only want to rant. They are unwilling to step back and take a more logical and reasoned look at a problem. I'm not going to bother reading rants, but I will be glad to help anyone who will meet me halfway.
    However, I deeply dislike XCode, for numerous reasons:
    I'm pretty ambivalent about Xcode. I've seen better and worse IDEs. It would probably be better if there were some competition around, but Metrowerks put themselves out of business.
    Xcode certainly has its faults, but what you have described is not behavior that I have experienced or that I have ever heard about.
    *This same exact project compiled fine on another computer (which unfortunately has been wiped clean)
    I have to say I'm skeptical about this. How do I (or you) know that there wasn't some fix not checked in to SCM on the other machine? Or some change that didn't work but did wind up in SM?
    *I'm able to build successfully on Leopard, just not my computer running Tiger. However, when I do the build on Leopard, it won't run on Tiger (I get missing link errors at runtime), even though I specify 10.4 as the target SDK.
    One way to narrow down where the problem might be is to build a test application on each system and make sure that works properly. How do I know you aren't one of those people who tried to pick and choose which parts of Xcode to install? You must install all of Xcode.
    How do I know you haven't tried to run one of those nasty apps like Monolingual that strips out resources that "you don't need"?
    *When I do the build in Tiger with 'current operating system' specified as the SDK, I get a completely about 800 error messages.
    That indicates that either your project or Xcode installation is completely broken. The first thing to do is find out which one of those it is.
    When I specify 10.4 as the SDK (which seems to me like it should be the same behavior as 'current operating system', since the machine is running 10.4), I get about 3,000 error messages as stated in my original post.
    Given that you don't seem to be able to build anything, trying a cross-platform built is unlikely to work better. The 10.4u SDK is for building a Universal binary (PPC and x86).
    *It is very difficult for me to figure out where to change various settings, since some are at the project level, some are at the target level, and some are at the build configuration level. Sometimes when I double-click on a target to change its settings, I get a blank editable text area; other times I get a GUI with modifiable target settings. In other words, I find the UI to be extremely difficult to manage.
    Those are certainly valid complaints. Once you get past this initial problem of building, it might be a good idea to post one or more new threads about how to use Xcode more effectively.
    In fact, when I've had to change certain settings in the past, it's faster for me to modify the project file in a text editor than to hunt for that particular GUI widget.
    Given that you seem uncomfortable with Xcode, this seems like a pretty dangerous thing to do. You could easily wreck your project so that it stops building for mysterious reasons.
    I'm much more comfortable with Java and IntelliJ than I am with C++ and XCode, so I'm sure that is a big part of my problem, but my gut reaction to the problems that I'm having right now is "don't breathe wrong on XCode or it will stop working and you have to recreate the project". That is why I don't like it (to put it mildly).
    You normally shouldn't have to recreate projects just to get Xcode working. However, that might be what you need to do in this case. If you can definitively prove that Xcode is correctly installed - by building a set of simple 10.4, 10.5 and 10.4u applications, then your project must be corrupted.
    Again, I appreciate your help. I only posted this rant to explain my previous post, which I should have kept to myself.
    I know how you feel. I got someone else mad at me in another thread when I called pthreads "pathetic"

  • XCode as C compiler

    I have been trying to learn C in my new mini but i dont know how to use xcode as a c compiler. Can somebody help? I have it installed in my mac.

    Here is an alternative, if you don't want to use the Xcode environment at all: use TextWrangler.
    TextWrangler is a simple plain code editor (well... compared to Xcode), and I use it all the time to write plain C programs with. TextWrangler can compile and run your C program, and put its output into a new text window. All it needs is this piece of magic before the very first line of your actual C code:
    #!/bin/sh
    /usr/bin/gcc -xc - <<EVILEOF
    and this at the very end of your file, starting on a new line:
    EVILEOF
    ./a.out
    I assigned a keyboard shortcut to the "Run" command, so for me it's a simple edit-compile and run-review result-edit loop.
    I don't have a clue how it works I got it from this 3-year-old post and have been a happy coder since!

  • XCode 4.2 compiling against std C libs

    hello all,
    i'm having a little problem with xcde 4.2 today
    today i did the following
    1. upgraded to lion
    2. removed old xcode 4.0
    3. installed new xcode 4.2
    4. created a static library project.
    5. added existing source files to project
    6. compiled lib.
    and i get a lot of errors about missing std c functions such as memcpy and strcat. is my install messed up?
    any help anyone could give me is very much appreciated.
    thank you.

    Grant Bennet-Adler
    Every language has mechanisms to "manage" name conflicts for variable names, functions, classes, source files ...
    In C, most include files are part of the "central library".  Some group projects are managed enough to have several sparse directories for headers, but most end up in either the "system" or "this project" collections.  Name colnflicts with files are inevitable.
    C++ uses "namespaces" to manage conflicts, but the rule-set for "how C++ decides" causes headaches.
    Java has "packages", but even within the "system realm" of functions, *some* functions must be fully-qualified.
    Once a programmer has even two programs he uses regularly, name conflicts are possible.
    Using names that declare its use is very helpful.  It is especially helpful 6 months down the road when you have forgotten most of what you just did.

  • Xcode isn't compiling Java correctly

    when ever i run a Java program from Xcode, I dont see the <filename>.class file. and i dont want to run UNIX all the time. At school we use TextPad and all is compiled. why isnt Xcode doing this?????????

    Hi Marcin
    The .class files are deeply hidden away in the build directory so they're not visible unless you go looking for them using the Finder - most users never bother. As part of the build process (for a Java Tool project) they're copied inside a jar file (Java Archive). When you select the "Build and Go" command, Xcode runs the java compiler to create the class files, then puts them into a jar file, then it runs the JVM, which uses the jar file to load all the classes in your program. All this happens in the background, so usually you're not even aware that it's happening.
    Hope this makes things a bit clearer
    Bob

  • Compiling/Debugging AIR App. on Samsung Galaxy Tab

    Hey guys,
    I'm currently testing/making a mobile app with Burrito/Hero SDK.  I am successfully compiling and debugging on my Droid 2 - there are certain settings on the phone that allows USB Debugging mode and also allows "unknown sources" (non-market applications) to be installed.
    I want to be able to run/install the application on a Samsung Galaxy Tab - I want to see how it looks on a bigger resolution.  I am not able to turn on USB debugging on this device, therefore, cannot debug or install on the device.
    Has anybody tried this?  Or does anybody know how to root the install so I can test my application?
    Thanks! Cheers!
    -Joe

    Hi!
    I tried this, but no good results either.
    When I did a number of google searches I came into conclusion that there's no Galaxy Tab drivers yet bundled with the Burrito. Then I tried to google the tab drivers for MacOS but couldn't find them either. So I guess that's the basic reason that Burrito team chose include just a subset of devices for the beta - or then Samsung has been postponing the mac driver implementation?
    I assume you could tweak even FB4 to build to Android if you manually edit settings and configs and hunt the drivers and deploy AndroidSDK. But didn't want to go there...
    I hope to have the galaxytab working asap since from my point of view that's the most interesting target environment (at the moment) because of the larger touch screen size and presumeably better CPU.
    PS. Has Adobe guesstimated about FB4.5 release date yet?
    -Lauri

  • COMPILING/DEBUGGING

    I have created a javac file with the following command:
    public class DebugThree1
    public static void main(String[] args)
         double myCheck = 50.00;
         double yourCheck = 19.95;
         System.out.println("Tips are ");
         calcTip();
         calcTip();
    public static void calcTip()
         double tip;
         tip = bill * .15;
         System.out.println("The tip should be at least " + tip);
    Whenever I run the above created file using the javac command, it gives me the cannot resolve symbol error.
    symbol: variable bill
    location: class DebugThree1
    tip: tip = bill * .15;
    Plz help!!!

    Whenever I run the above created file using the javac
    command, it gives me the cannot resolve symbol error.
    symbol: variable bill
    location: class DebugThree1
    tip: tip = bill * .15;
    Plz help!!!Just look at the error message. The compiler found a symbol - the variable named bill - and could not figure out (resolve) what this symbol meant.
    You haven't told the compiler what bill is.

Maybe you are looking for

  • Need urgent help on adobe photo shop elements 12

    i recently bought adobe photo shop elemnts 12 at a local store and they told me i could use it for buisness cards to create them ..as far as i can see it does not ..and they wont let me return it so thats a 100 dollars down the drain unless someone k

  • Using Oracle from MS SQL 2005

    I am having a strange problem while running an SQL statement in MS SQL 2005 that uses a linked Oracle server. I am getting the following error: OLE DB provider "OraOLEDB.Oracle" for linked server "OG" returned message "ORA-01403: no data found". Msg

  • ITunes Install Error 1316-1603

    I tried both the iTunes goes with the iPod CD and the one downloaded on the website, and I exit all the other programs (including firewalls, Norton) before installation, and I also used Windows Install Clear Up to clear former versions, but I still c

  • Including old content (pages)

    We are currently running off Oracle with the Web Application Server Cartridge. Now we have a lot of content that would takes ages to portlet-ize. By the way - is that the recommended sollution? I don't quite get how parameter passing in the URLs work

  • Iphoto Sharing Isn't Working

    Really frustrated. It was working a couple of minutes, I've been sending photos to some friends through imessage, and I waited until all my other pictures were sent, but whenever I go to click on it, it just makes a noise. Thanks!