Tagged Questions
0
votes
2answers
36 views
Disable Terminal for Command Line Tool
I programm an artificial life simulation on my mac with Xcode in C++/OpenGL.
Due to the fact that my programm has a visual output in a seperated window,
I do not need the terminal, while running the ...
0
votes
1answer
33 views
Automatic Step over in xCode
I was debugging my code and thought about a possibility of automatic stepping over or Step into line by line in the xCode debug mode. It would be more efficient to see the way the code will be ...
-1
votes
1answer
47 views
How to debug when there are no logs?
I'm working on compas-AR app. I have UIImagePickerViewController so I can have background from device camera. Inside UIView overlay I put all UI buttons/subviews. Every method has a NSLog() at the ...
0
votes
2answers
22 views
Adding an XCode breakpoint for logging NSData returned for NSRequest
I found breakpoint to be very convenient for getting rid of all NSLog statements trough all my code. This time I am looking for a way to print the html response coming from an NSRequest in a ...
0
votes
0answers
27 views
EXC_BAD_ACCESS in Xcode debugger when stepping over?
Learning how to code on Mac OS X for me is mainly about familiarizing myself with Xcode and I have this weird problem:
when I debug code and I move the debugger arrowhead from one line to another, I ...
0
votes
1answer
24 views
Is it possible to jump to a specific iteration of a loop when debugging?
In Xcode, if I have a for loop that either has a hardcoded limit (i.e. only goes up to 100), is it possible to jump to a specific iteration of the loop? For example, say I have the following loop:
...
1
vote
1answer
43 views
Disable debug logging when run on device from XCode
I implemented debug logging in my application defining a DLog function using the following code in .pch file:
#ifdef DEBUG
# define DLog(fmt, ...) NSLog((@"DEBUG - %s [Line %d] " fmt), ...
-1
votes
0answers
23 views
Storyboard problems [closed]
I always get this error when I link the viewcontrollers and run the app. return
UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));.
Is there away to debug this thing
0
votes
1answer
50 views
Running not the same app I'm debugging?
Weird stuff happening. I'm developing an iOS app under iOS 4.2 using Xcode 3. I have the same app in two different folders and they have different xib files (because of two different languages of ...
1
vote
1answer
60 views
string of the @exp@ in breakpoint Log Message has only one first symbol
I need to trace my program. I made symbolic breakpoint:
Full string is:
"Class name is @*(char*)object_getClassName(*(long*)($esp+4))@"
But instead full class name I have only first one symbol ...
5
votes
0answers
163 views
Is LLDB really the best debugging tool for iOS? [closed]
I'm trying to debug my iOS code on device and simulator. Every time i drop to LLDB I find it extremely frustrating to do even basic commands like "print". I find lldb to be poor at resolving return ...
2
votes
2answers
60 views
what happens between willSelectRowAtIndexPath and prepareForSegue? Need debugging advice
Somewhere in between these two calls, i get EXC_BAD_ACCESS (Code=2, address=0xa).
The common explanation for bad access is accessing a released object - I've compiled with NSZombies enabled and that ...
4
votes
1answer
137 views
Xcode - Break on exception, but no useable symbols
I need help figuring out the magical incantation necessary to get usable information in LLDB.
I have some strange behavior that I'm trying to debug, and I can reliably reproduce the issue but I don't ...
0
votes
1answer
23 views
XCode - Can I debug an iOS app on an iphone that is not my own?
I am testing an app, and have figured out how to distribute it (I use test flight and it works great).
But I am running into trouble on one of the test devices (my wife's. uses a different apple ...
-1
votes
1answer
63 views
xcode project paused when i run app simulator in Debug
Debug shows me this
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
and the output shows
2013-05-16 04:58:07.496 Scroll Blog[5296:c07] get_recent_post&cat=
...
0
votes
0answers
42 views
NSLog not getting printed in the console area while debugging on device?
I am facing a weird issue.NSLog statements are not getting printed to the console when i am debugging my application using the device.I even pulled the log files using the organizer even there they ...
1
vote
1answer
65 views
How do I stop Xcode from showing me this assembly language when I'm debugging and step over?
I have "Show Disassembly" unchecked, but after a few step overs this still shows up.
0
votes
0answers
64 views
Why ivars in block are inaccessible in debugger?
It is a simple animation:
[UIView animateWithDuration:0.3 animations:^(void) {
// Code with references to self
}];
I set a breakpoint in the animation block. Whether I use GDB or LLDB, the ...
0
votes
1answer
86 views
ios app randomly crashes when scrolling through a table view, not sure how to handle error thrown
All I have is a simple table view that downloads content from twitter using AFNetworking and then displays it in cells. I have paging enabled in my tableview, and sometimes when I scroll between my ...
0
votes
0answers
43 views
Xcode Running application using external terminal
I am developing a command line tool using Xcode. Console provided by the Xcode is not a full fledged one. I want launch command line tool(Product) on external terminal (Say Terminal app)and ...
0
votes
1answer
67 views
How do you add breakpoint actions via the LLDB command line?
If you edit a breakpoint from Xcode, there is the super-useful option to add an "Action" to be automatically executed every time the breakpoint is hit.
How can you add such actions from the LLDB ...
10
votes
2answers
194 views
Xcode Debugger does not work on first app installation
Every time I install a fresh copy of my app on my testing device the debugger is not showing any output. Rebuilding the project solves it.
What could be the problem, or any suggestions how to explore ...
-1
votes
1answer
70 views
Is the GDB debugger easy and quick to master? [closed]
I need to debug my program that's several files.
I've been using terminal and vi to write all 80+ files. And other than somewhat basic unix commands in my opinion, I don't really know how to do much ...
2
votes
1answer
38 views
Xcode has the wrong debug values while paused in the debugger
I am having a strange problem in Xcode. After I use insertObject:withIndex: on this NSMutableArray object, the debug window shows the wrong value for the array even though the correct values are show ...
0
votes
2answers
143 views
C++ - how to obtain address of std::vector object in lldb / Xcode
I have a stack-allocated std::vector that is being overwritten by some rogue code. It is not the data being overwritten, but the internal state. I know this because the size() member function returns ...
0
votes
1answer
41 views
How to debug “Collection was mutated while being enumerated” errors and like, when Xcode does not provide me with enough information?
Currently, I see a recurring error:
2013-04-18 02:35:51.583 aaah[1713:1110f] *** Terminating app due to uncaught exception 'NSGenericException', reason: '*** Collection <__NSArrayM: 0x1fc00dc0> ...
2
votes
0answers
38 views
Xcode copy-paste breakpoints
Is there any way to copy-paste breakpoints in Xcode?
The reason I am asking is, I have a breakpoint set to "automatically continue after evaluating", with some actions associated. I want to have the ...
0
votes
2answers
101 views
Xcode 4.6 debug - source code not showing (scheme and debug workflow are set properly)
I suddenly can't see source code when debugging in XCode. The run build configuration in the scheme is set to debug, and "Product -> Debug Workflow -> Show Disassembly..." is NOT checked. Source code ...
0
votes
1answer
25 views
get value of function during debug xcode
I am new to xcode/ios development. I need to know can we get the value of a function during debug process? Like
[super getUserName];
In eclipse we can get the return value by selecting the text ...
1
vote
2answers
57 views
XCode debugger weird behavior
I have an iPhone app that I am trying to debug.
One of my method returns a wrong value only when executing code, in the debugger it is fine.
int finalResponse = 0;
finalResponse = [data ...
0
votes
2answers
54 views
ios: Debug custom location not working
In simulator I set debug->location->custom location latitude and longitude.
Then in code I have:
- (void)updateMap{
MKCoordinateSpan span;
span.latitudeDelta = .6;//The amount of ...
1
vote
1answer
44 views
Xcode: how to set a break point inside one line of code?
Say I have a piece of code like this:
x -= func();
Is there any way I can know the result of func() without adding a temp variable or inspecting x? Also, func() is in a binary library so I don't ...
3
votes
3answers
150 views
How do I quickly inspect the value of an arbitrary variable in Xcode 4.6.x?
It seems reasonably widely acknowledged that it is slow to use the po command in Xcode 4.6.x. What are the options for inspecting the values of arbitrary variables unspecified at compile time (which ...
0
votes
1answer
24 views
XCode EXC_BAD_ACCESS crash on device but not simulator - debugging with breakpoints
I'm not sure what happened, I think I did not make any significant changes to the code, but now I cannot run or debug the app.
Thread 1: EXC_BAD_ACCESS (code=2, address=0x2fd77d4c)
I cannot even ...
0
votes
1answer
57 views
Xcode lldb error - unsure where to start
I've been working on a small app, actually in final staging of polish and debug.
I made few small changes to NSUserDefaults storage, which were very minor changes.
However, every time I try to run ...
0
votes
0answers
30 views
Why Xcode clean command deletes both debug and release mode files?
The clean command in XCode, removes both 'debug' and 'release' mode executables.
So, I could not compare the output of two modes.
Please suggest, how to 'clean' only the 'selected' mode of files ...
1
vote
0answers
34 views
Code can be recovered for iOS app with debugging turned on
If I distribute an iOS app with debugging turned on how much of the code can be reconstructed by an evil person?
I am asking about an evil person being able to quickly reconstruct the source code, ...
-2
votes
1answer
35 views
Best practices in debugging xcode ios 5.0? [closed]
Earlier I'm a .net programmer where debugging is very simple, but now I find difficult in debugging iOS. Can some explain the best and simple way to debug iOS Xcode. Also how to skip between ...
1
vote
0answers
46 views
Xcode debugger showing unexplainable info in debug area
While trying to debug my iPhone app in Xcode I encountered information in the debug area that I do not understand.
Here comes the code that I'm debugging. The breakpoint which suspended program ...
0
votes
0answers
43 views
Why xcode debug library size is smaller than release library
I'm building a Xcode library project which contains the another static library of size 5.1 MB.
In Release mode, the output library size is 5.1 MB.
But in Debug mode, the output library size is 2.6 MB ...
1
vote
1answer
45 views
Can you change the current line of execution while debugging in Xcode?
The debugger lets me drag the little green line pointer, but it seems it has no effect at all and when I step it behaves as though I never dragged it.
Just wondering if the bug is:
That it's not ...
4
votes
1answer
88 views
Sin(int) is broken in Xcode debugger (lldb)
I have an universal iOS app targeting iOS SDK 6.1, and the compiler is set to Apple LLVM compiler 4.2. When I place a breakpoint in my code and run the following I get weird results for sin(int).
For ...
0
votes
0answers
30 views
Duplicate Symbole in xCode, But no duplicate exist
The Problem
Xcode (Version 4.6.1 (4H512)) is complaining a duplicate symbole problem.
duplicate symbol _OBJC_METACLASS_$_PacksStoreHelper in:
...
1
vote
0answers
71 views
Suppress iOS Console Output “Unloading xxx unused Assets…”
Is there any way to suppress console output in iPhone player when a new scene is loaded using Application.LoadLevelAdditiveAsync or similar methods?
Unloading 7 Unused Serialized files (Serialized ...
0
votes
2answers
44 views
Xcode, stepping through my own code using breakpoints
Usually, this works, but in addition to my own code there a lot of machine code too, which doesn't really help me out with debugging my own program logic.
Is there a way to step through only my own ...
0
votes
1answer
35 views
Debugging by Thread in Xcode
I'm a beginner in xcode and iphone iOS development while debugging the xcode it shows Thread1,Thread2,Thread3,Thread4 what these threads meant? and how it is useful in debugging can some explain?
0
votes
0answers
47 views
Simple UIScrollview with UIImageView with zooming
I have an application that loads images into a UITableViewController, (Wine Labels), then you can navigate to the Item Details. On this page you can see a larger image of the Wine Label...IOS 6.1...
...
3
votes
2answers
80 views
xcode debugger options
What are the three options we see in the debug console in Xcode? Just curious to know why there are three options? What purpose each option serve?
2
votes
0answers
27 views
How to make Xcode debugger tab active on start then switch back original tab on complete?
When I run my app I have it where it switches to the debugger tab on start, but when it completes I want to have it switch back to the editor tab I was originally at.
In the behavior settings under ...
0
votes
0answers
60 views
Guard Malloc library not loading
I enable Guard Malloc in xcode but immediately get the following error when I try to run on the device:
dyld: could not load inserted library '/usr/lib/libgmalloc.dylib' because image not found
...