Graphical Debugger

RSS for tag

Debug your app directly within the Xcode editor using Graphical Debugger.

Graphical Debugger Documentation

Posts under Graphical Debugger tag

44 results found
Sort by:
Post not yet marked as solved
139 Views

trying to code in C using Xcode

I am trying to write a code that recreates Pong. I am trying to use the graphic features in C, but all of the headers are different from Windows/PC features. I need to know what is needed to do graphics in C using Xcode.
Asked Last updated
.
Post not yet marked as solved
9.5k Views

Xcode 11 hangs while attaching debugger to ios process

When I attempt to launch an app from Xcode 11 (gm seed 2) to my attached iPhone running iOS 13 the I see the app launch with a white screen but then the iOS process hangs for about *60 seconds* before the app finishes launching. If I un-check "debug executable" on the target then this behavior does not happen. If I launch the app on the phone directly (without xcode) it launches normally. If I launch the app on the phone and attempt to attach the debugger from xcode I get the same (one minute) hang.This only happens on one of my machines even though both are using the same setup (only diff is that one is a laptop and one is a desktop). So I am assuming something is wrong or corrupted with the "debug support" that was installed on first connect to the new xcode... But I can find no reference to how to re-init that. I have tried the "unpair phone" option in devices in xcode but it does nothing. I don't see anything in settings related to developer profiles or debug symbols.Anything I can do to reset the phone with respect to debgging support / symbols installed by xcode? Any other thoughts?thanks,Pat
Asked Last updated
.
Post not yet marked as solved
21k Views

Not able to "connect via network" for debugging

I am trying to establish a remote connection to an iOS 11 device for debugging. Both devices are on the same Wi-Fi network, I'm using Xcode 9 and in Window->Devices and Simulators have checked the "Connect via network" box. I do not get a network icon next to my device, nor do I get any prompt on the device itself.The application if for point of sale and the Wi-Fi firewall has most ports blocked. For example, I know port 22 (ssh) is blocked - the only open port I'm certain of is 8080. I suspect the port used for debugging is blocked. What port(s) are used for debugging? I can request the network guys open a few ports if needed.
Asked
by kgomara.
Last updated
.
Post not yet marked as solved
7.7k Views

Why is the line number 0 for my source code in symbolicated crash log?

Why is the line number 0 for my source code in symbolicated crash log?At line 4 in Thread 0, the line number is 0 for (MyCodeModule.swift:0). Why is that? Is there a way to get more details about where it crashed?This is from a crash log a customer sent. The crash seems to be coming from somewhere in string processing routines.Are Swift line number references only delivered for functions/methods in Swift classes, but not free-standing functions?Also, is there a way to get symbolicated names for the libswiftCore.dylib lines in the crashed thread?Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 libswiftCore.dylib 0x0000000104c04324 0x104948000 + 2868004 1 libswiftCore.dylib 0x0000000104bcbb6c 0x104948000 + 2636652 2 libswiftCore.dylib 0x00000001049c48fc 0x104948000 + 510204 3 libswiftCore.dylib 0x0000000104bd4f14 0x104948000 + 2674452 4 MyAppName 0x0000000104536e00 specialized MyFunctionOne(_:parameter:) + 339456 (MyCodeModule.swift:0) <-- HERE 5 MyAppName 0x000000010455c3b8 MyController.myMethodTwo(_:parameter:) + 492472 (MyController.swift:1090)Other pertinent lines from crash log:Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000020 VM Region Info: 0x20 is not in any region. Bytes before following region: 4367204320 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START ---> __TEXT 00000001044e4000-00000001044e8000 [ 16K] r-x/r-x SM=COW ...pp/MyAppName Termination Signal: Segmentation fault: 11 Termination Reason: Namespace SIGNAL, Code 0xb Terminating Process: exc handler [0] Triggered by Thread: 0 Filtered syslog: None found
Asked
by ecology.
Last updated
.
Post not yet marked as solved
154 Views

Unable to Capture View Hierarchy on physical device

What I already did: Mac / target restarted Devices unpaired Library/Developer removed Xcode 12D4e (Appstore) reinstalled - latest for Catalina How to reproduce the error: Empty iOS project (Hello World) Select a physical device (it works fine in the simulator) Product --> Run Debug --> View Debugging --> Capture View Hierarchy Result: Error:    Unable to Capture View Hierarchy. Details:  Log Title: Data source expression execution failure. Log Details: error evaluating expression “(id)[[(Class)objc_getClass("DBGTargetHub") sharedHub] performRequestWithRequestInBase64:@"…"]”: error: Expression can't be run, because there is no JIT compiled function Log Method: -[DBGDataSourceConnectionLibViewDebugger _executeLLDBExpression:forRequest:onPotentialThread:iteration:]_block_invoke Method:   -[DBGViewDebugger _initiateInitialRequestWithDataSourceVersion:]_block_invoke Environment: Xcode 12.4 (12D4e) debugging iPhone X (Model A1865, A1901, A1902, A1903) iOS 14.7.1 (18G82). Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. Has anyone this problem too?
Asked
by Cocoader.
Last updated
.
Post not yet marked as solved
1.4k Views

Xcode 11 debugger error: Couldn't lookup symbols

I'm integrating a 3rd party library in my project. After updating to the latest version and switching from regular frameworks to XCframework I've started seeing this issue:Whenever I'm trying to inspect an object from the 3rd party library via LLDB console, e.g.po <object.property>i'm getting this error:error: Couldn't lookup symbols: dispatch thunk of <...>At the same time I can inspect the object in the Variables ViewAny idea if this is an integration or framework distribution issue ?
Asked Last updated
.
Post not yet marked as solved
134 Views

Can iOS Settings app Documents & Data show incorrect usage?

I'm at a state where, on my iPhone, my App's Shared Group Container Directory is Using 303 KB, Documents Directory is Using 16 KB, Temporary Directory is Empty, and, Caches Directory is using 295 KB. Yet, for some reason my iPhone's Settings App > General > iPhone Storage, seems to think that my app's "Documents & Data" is using 191.9 MB. What gives? I have tried everything I could think of here. I tried downloading my app's container to my Mac using Xcode. I have even tried re-booting my iPhone, and force-quitting & restarting the iOS Settings app. None of these have offered a hint. Is there something I'm missing here? How exactly does the system calculate "Documents & Data" disk usage? Is there anyway to know what using this disk space?
Asked
by samuelj.
Last updated
.
Post marked as solved
5.5k Views

How can I see the "documents & data?"

I made a very small 4gb web application game wrapped with Cordova. What's annoying me is that everytime I lose the game or even just launch the application after quitting it is that it increases in size by about 0.15mb. Under settings>general>storage>manage storage, I see that it's all "Documents & Data."Is there any way to view what is in this folder? Because I'm not sure what's causing it; my best guess is that is either me pushing a score to an array in the web application's localStorage or the Cordova AdMob Pro plugin that I'm using because I prepare an interstitial ad after every time you lose in the game.
Asked
by MiLeung.
Last updated
.
Post not yet marked as solved
1.2k Views

Cannot attach debugger to Helper app on macOS

I've got a macOS app with a "Helper" (LoginItem) app that I'd like to attach the debugger to in order to debug the communication between the two.I realize hardening a target makes it impossible to attach the Xcode debugger to it, however I've created a separate entitlements file for Debug mode, turned "Enable Hardening" OFF for both Debug targets and have also added a "com.apple.security.get-task-allow" set to "YES" in the entitlement files for both debug targets. Still, I see this:macOSTaskPolicy: (com.apple.debugserver) may not get the taskport of (com.b) (pid: 4144): (com.b) is hardened, (com.b) doesn't have get-task-allow, (com.apple.debugserver) is a declared debuggerI'm unable to debug the helper and it's frustrating. How can I disable SIIP or whatever it takes to get this to work?
Asked
by Smithers.
Last updated
.
Post not yet marked as solved
160 Views

How do I view global variables in the debugger window?

When I select the "all" option for which variables to show my global variables don't show up. I've got a set of arrays that are used to store data that are globally available. But when I'm in a routine that uses them they don't show up in the debugging window. There might be a bug because once they did show up but that was only once. I know the variables exist and are in scope since the method uses them and works just fine. Thanks for any help. I'm using Xcode 12.1
Asked
by trinko.
Last updated
.
Post marked as solved
5.2k Views

ITunes Connect - Crash report - Code 0x8badf00d

Hello,I am trying to submit my app to TestFlight. But the build didn't pass the tests. ITunes Connect rejected my build. The reason is "Binary Rejected: Guideline 2.1 - Performance - App Completeness We were unable to review your app as it crashed on launch. We have attached detailed crash"The app works well on my device as an internal tester (via TestFlight).I precise that I used Xamarin.iOS to develop the app.I have some difficulties to find the source of the problem, can you help me? Here is the crash log:https://pastebin.com/HyTLXiAYThanks in advance for your help!Jérôme
Asked
by gg0512.
Last updated
.
Post not yet marked as solved
16k Views

App crashing immediately on start up after upgrading to iOS12.

Running fine in simulator but crashes in device.No crash logs recorded.In line error shown after launching the app Thread 1: EXC_BAD_ACCESS (code=1, address=0x81b4288100000002).No main or didFinishLaunchingWithOptions is called yet.Tried re-installing the application. Tried "Eare All Content and Settings" but it does not work.Enabled zombie objects but even that did not help(no logs recorded).main methodint main(int argc, char * argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); }}
Asked
by AbhishekB.
Last updated
.
Post not yet marked as solved
580 Views

Firebase crash reporting in an embedded framework

I'm developing an application, MainProject, that has an embedded framework, EmbeddedFramework (also developed by my team), and I'm incorporating Firebase Crashlytics in order to get crash reports.The crash reporting is working just fine in the base application, I'm getting deofuscated reports that point to the exact line where the crash happened.In the other hand, the crash reporting fails when a crash occurs inside of the embeddedframework. When that happens, all I get is a <compiler generated> or a <specialized> line of code, making it really hard to identify and/or debug.For example, for this instance of a crash report in Firebase: [1]: https://i.stack.imgur.com/ulmPS.pngCrashed: com.apple.main-thread 0 EmbeddedFramework 0x101b38628 $s6EmbeddedFramework0A14AuthenticationC6isIdleSbvg + 114 1 MainProject 0x100d07a94 specialized EntryViewController.clickLogin(sender:) + 884 (:884) 2 MainProject 0x100d035c4 @objc EntryViewController.clickLogin(sender:) + 48 (:48) 3 UIKitCore 0x1dbde7300 -[UIApplication sendAction:to:from:forEvent:] + 96 4 UIKitCore 0x1db890424 -[UIControl sendAction:to:forEvent:] + 80 5 UIKitCore 0x1db890744 -[UIControl _sendActionsForEvents:withEvent:] + 440 6 UIKitCore 0x1db88f7b0 -[UIControl touchesEnded:withEvent:] + 568 7 UIKitCore 0x1dbe1e5c4 -[UIWindow _sendTouchesForEvent:] + 2108 8 UIKitCore 0x1dbe1f7ec -[UIWindow sendEvent:] + 3140 9 UIKitCore 0x1dbdff85c -[UIApplication sendEvent:] + 340 10 UIKitCore 0x1dbec59d4 __dispatchPreprocessedEventFromEventQueue + 1768 11 UIKitCore 0x1dbec8100 __handleEventQueueInternal + 4828 12 UIKitCore 0x1dbec1330 __handleHIDEventFetcherDrain + 152 13 CoreFoundation 0x1af46c728 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 14 CoreFoundation 0x1af46c6a8 __CFRunLoopDoSource0 + 88 15 CoreFoundation 0x1af46bf90 __CFRunLoopDoSources0 + 176 16 CoreFoundation 0x1af466ecc __CFRunLoopRun + 1004 17 CoreFoundation 0x1af4667c0 CFRunLoopRunSpecific + 436 18 GraphicsServices 0x1b166779c GSEventRunModal + 104 19 UIKitCore 0x1dbde5c38 UIApplicationMain + 212 20 MainProject 0x100cc9294 main + 24 (AppDelegate.swift:24) 21 libdyld.dylib 0x1aef2a8e0 start + 4The report points to the function clickLogin(sender:) in the class EntryViewController, but I know for a fact that the crash is happening in the Authentication method in the EmbeddedFramework (aka, the line 0 of the crash trace), because I'm causing it for test purposes. However, the exact place and motive of the crash is obscured and hidden away.Why does this happen? Is it possible to make Firebase to recognize the crashes happening inside a embedded framework and point to the correct line?Thanks a lot in advance.
Asked
by DracoRubi.
Last updated
.
Post marked as solved
2.0k Views

Why are breakpoints in Xcode not showing source code now?

I have recently started to experience the debugger not stopping at breakpoints and showing source files. Instead it shows the assembly instructions and it seems to have started happening for others on my team. I thought maybe it was a setting somewhere in our projects so I created a new project with unit tests and even it does not work normally. The only recent change has been to do debugging with iOS 14 while using Xcode 11.3 due to still having some projects using Swift 4. We've copied the Device Support from the latest version of Xcode to run the app on the device. I have also tried debugging with an iPhone 6s running iOS 12 and also with the Simulator while running unit tests. In every case on this Mac I am not able to get source files to be displayed when the debugger stops at a breakpoint. And I have also tried running test unit tests for this project with Xcode 11.5. It also does not work. What could be preventing it from working?
Asked Last updated
.