Graphical Debugger

RSS for tag

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

Graphical Debugger Documentation

Posts under Graphical Debugger tag

40 results found
Sort by:
Post marked as solved
5.3k Views

Debug SIGTERM handler in Xcode?

Xcode 6.3.2I have a daemon that hooks SIGHUP, SIGINT, and SIGTERM. They all direct the signals to call a signal_handler() function.I was having an intermittent crash when the daemon was existing, so I ran the process in Xcode hoping to catch the problem. Unfortunately, I can't reproduce it. When I send the process a SIGTERM (kill -TERM <pid>), Xcode breaks in my run loop and says my process received a SIGTERM. Unexpected, but OK.But then I click on the Continue button and ... nothing happens. The program goes right back to running normally, The signal_handler() function is never called.Does anyone know how I can debug signals using the debugger, without the debugger intercepting it and "eating" the signal?
Asked
by JamesB.
Last updated
.
Post not yet marked as solved
78 Views

Unity - XCode image spritesheet not working

Hello, after I updated the project to the latest stable version of Unity and created a build for IOS. I tried to run the Xcode project on my iPad connected to the iMac, I noticed that the spritesheet I was using was no longer loaded, or the images from the spritesheet were not displayed in the UI. In the Unity engine everything works correctly, only when I test it in Xcode on the iPad it doesn't work anymore https://drive.google.com/file/d/1w6Bo9ZEkNEGg1hlTCjWJCRJsWV4E6eF1/view?usp=sharing
Asked
by Science78.
Last updated
.
Post not yet marked as solved
955 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
19k 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
4.3k Views

+[_CFXNotificationTokenRegistration keyCallbacks] (CoreFoundation)

I have received this report through firebase analytics and I have no idea what it is. Would you help me?I tried to reproduce but to no avail.Fatal Exception: NSInternalInconsistencyExceptionTrying to complete an interactive gesture but the animation coordinator is nil! (gesture=<_UIBarPanGestureRecognizer: 0x100cb82e0; state = Ended; view = <UILayoutContainerView 0x100c25000>; target= <(action=_gestureRecognizedInteractiveHide:, target=<UINavigationController 0x10100f400>)>> action=Hide)----------------------------------------------------------------------------------------------------Fatal Exception: NSInternalInconsistencyException0 CoreFoundation 0x18ae5927c __exceptionPreprocess1 libobjc.A.dylib 0x18a0339f8 objc_exception_throw2 CoreFoundation 0x18ad72988 +[_CFXNotificationTokenRegistration keyCallbacks]3 Foundation 0x18b836188 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]4 UIKitCore 0x1b6fecaac -[UINavigationController _gestureRecognizedInteractiveHide:]5 UIKitCore 0x1b7244868 -[UIGestureRecognizerTarget _sendActionWithGestureRecognizer:]6 UIKitCore 0x1b724ca70 _UIGestureRecognizerSendTargetActions7 UIKitCore 0x1b724a414 _UIGestureRecognizerSendActions8 UIKitCore 0x1b7249940 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:]9 UIKitCore 0x1b723da1c _UIGestureEnvironmentUpdate10 UIKitCore 0x1b723d14c -[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:]11 UIKitCore 0x1b723cf2c -[UIGestureEnvironment _updateForEvent:window:]12 UIKitCore 0x1b7655510 -[UIWindow sendEvent:]13 UIKitCore 0x1b763559c -[UIApplication sendEvent:]14 UIKitCore 0x1b76fb714 __dispatchPreprocessedEventFromEventQueue15 UIKitCore 0x1b76fde40 __handleEventQueueInternal16 UIKitCore 0x1b76f7070 __handleHIDEventFetcherDrain17 CoreFoundation 0x18adeb018 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__18 CoreFoundation 0x18adeaf98 __CFRunLoopDoSource019 CoreFoundation 0x18adea880 __CFRunLoopDoSources020 CoreFoundation 0x18ade57bc __CFRunLoopRun21 CoreFoundation 0x18ade50b0 CFRunLoopRunSpecific22 GraphicsServices 0x18cfe579c GSEventRunModal23 UIKitCore 0x1b761b978 UIApplicationMain24 Candeias 0x1002e1ca4 main + 19 (CustomView.swift:19)25 libdyld.dylib 0x18a8aa8e0 startFalha: com.twitter.crashlytics.ios.exceptionSIGABRT ABORT 0x000000018a9f60dc----------------------------------------------------------------------------------------------------Crashed: com.twitter.crashlytics.ios.exception0 Candeias 0x1005320dc CLSProcessRecordAllThreads + 376 (CLSProcess.c:376)1 Candeias 0x1005324c4 CLSProcessRecordAllThreads + 407 (CLSProcess.c:407)2 Candeias 0x100521ef4 CLSHandler + 26 (CLSHandler.m:26)3 Candeias 0x1005306f0 __CLSExceptionRecord_block_invoke + 199 (CLSException.mm:199)4 libdispatch.dylib 0x18a8997d4 _dispatch_client_callout + 165 libdispatch.dylib 0x18a847c18 _dispatch_lane_barrier_sync_invoke_and_complete + 566 Candeias 0x10053018c CLSExceptionRecord + 206 (CLSException.mm:206)7 Candeias 0x10052ffc0 CLSExceptionRecordNSException + 102 (CLSException.mm:102)8 Candeias 0x10052fbdc CLSTerminateHandler() + 259 (CLSException.mm:259)9 libc++abi.dylib 0x18a028838 std::__terminate(void (*)()) + 1610 libc++abi.dylib 0x18a028434 __cxa_rethrow + 14411 libobjc.A.dylib 0x18a033bc8 objc_exception_rethrow + 4412 CoreFoundation 0x18ade511c CFRunLoopRunSpecific + 54413 GraphicsServices 0x18cfe579c GSEventRunModal + 10414 UIKitCore 0x1b761b978 UIApplicationMain + 21215 Candeias 0x1002e1ca4 main + 19 (CustomView.swift:19)16 libdyld.dylib 0x18a8aa8e0 start + 4
Asked
by guike.
Last updated
.
Post marked as solved
4.7k Views

C++ exceptions on iOS

I use Crashlytics to generate crash reports for an iOS app. When C++ exceptions are thrown on the main thread, they are caught by a CFRunLoop exception handler and rethrown, which destroys all the information about where in the code the original exception is thrown.There is an open radar for this, opened two years ago, that was marked as "duplicate", but the duplicate doesn't exist as far as I can tell: http://www.openradar.me/radar?id=4943586562932736This is a Stackoverflow thread about the issue: https://stackoverflow.com/questions/13777446/ios-how-to-get-stack-trace-of-an-unhandled-stdexceptionI've tried all sorts of workarounds, including printing the stack trace with [NSThread callStackSymbols] in the constructor for the exception I use. This sort of works in debug builds (at least I can see the trace, but Crashlytics still lumps them all into "std::terminate"). But this does not work in release builds. The symbols are random symbols that don't correspond at all to the actual stack trace. The end result is that I have no usable stack information for any crashes on the main thread from C++ exceptions, which is unfortunate because my whole app is written in C++.It's been several years since this was reported to Apple. The proper solution is to allow us to turn off the CFRunLoop exception trapper. Should I file another radar (hopefully it won't also be closed as duplicate) or what else should I do to draw Apple's attention to this? Being unable to report C++ exceptions is a pretty big deal.
Asked Last updated
.
Post not yet marked as solved
375 Views

xcode12.3 cannot debug IOS game on M1 macmini

I can build and run a IOS game in xcode 12.3, but the breakpoints are not work, and capture gpu frame pops up an error: Replayer terminated unexpectedly with error code 512. Please export the frame capture file then file a radar
Asked
by xoyojank.
Last updated
.
Post not yet marked as solved
139 Views

Xcode debug lldb remote

I want to do source level debugging of an external environment using Xcode's graphical debugger. I have an External Build System project with local source files that builds libraries/executables (not macOS or iOS) and creates their dSYM symbol files (also stored locally). I have a script that I can run from Xcode that starts the library/executables (in an external environment), and gets their slide addresses so their symbols can be loaded into lldb. The script also returns a gdb-remote url that I can use with lldb to begin debugging. Is there a way for Xcode to use the lldb info gathered by my script to start its graphical debugger? If this feature doesn't exist, then I see two simple ways that this feature could be implemented: a) In the Run Action, there's a Run Script action in the Pre-actions to start the remote environment and gather the debug info to create a lldb script that has the gdb-remote command, and commands to add the target modules, and to load the target modules with their slide values. All of that I've already implemented. The Run Action can then have an option to launch lldb with the generated lldb source script. b) The Run Script action in the Pre-actions of the Run Action that sets up the external environment and gathers the debug info can launch lldb itself with the generated lldb source script. The Run Action can have an option to watch the terminal output for an lldb prompt and then take over when the prompt appears.
Asked
by joevt.
Last updated
.
Post not yet marked as solved
592 Views

mac-to-mac remote debugging

There have been occasional questions about remote debugging. Unfortunately I see a couple of them which were reasonable basic questions got no answer at all. I will try this again. A couple questions had some mention of lldb server. In some cases clearly the people asking the questions already knew a bit about remote debugging. Yet I can find no documentation about it.Does XCode or other tools that will work with XCode support debugging over the internet? If so what are the reqirements re XCode version and macOS version, whether the client and server can have unmatched versions, etc.?My immediate need (without extra steps) is to debug a process running on Sierra (no XCode installed yet) from a development system running XCode 7.3.1 under El Capitan.The need for remote debugging is to be able to diagnose crashes that don't happen on my development systems. There have also been questions concerning crash logs, but crash logs are of limited use unless the crash can be opened into a debugger with full ability to examine the stack and local variables.Thanks in advance!
Asked
by kkbigler.
Last updated
.
Post not yet marked as solved
1.9k Views

TestFlight alert after quitting the app

Hi everyone,On my last app, I launch a beta test phase but every time I quit the app, an alert show up telling me that the app crashed and asking me to if I want to share more informations to developpers.Here is the screenshot of the alert :https://imgur.com/zWVCTH8The app is made of SwiftUI with some UIKit part comming from Unity 3D.Several frameworks used.The alert show up from any screen of the app. It's not related to a specific part.
Asked Last updated
.
Post not yet marked as solved
209 Views

How to debug multisample texture with Xcode?

Hi, I am working on a 2x multisample texutre, and try to retrieve the sample value from Xcode metal debugger. However, I can only get to the pixel level. In addition, when I try to debug the shader, it is also on the pixel level. I cannot debug per sample excution. I can do that when I was using Renderdoc in PC. Is anyone able to do that with xcode? Thanks,
Asked
by shujianke.
Last updated
.
Post not yet marked as solved
8.2k Views

Xcode 10 debugger stops on some breakpoints and doesn't on some others

The breakpoints that are working are defined twice (I don't know how or why they were created twice). When editing those breakpoints the condition item has two radio buttons. The first one is on with the text: "Use parent breakpoint condition, which is not set". The other radio button is near the "classical" text field for the condition. The breakpoints that don't work have only the text field for the condition. I can't find any documentation for this.My questions : What makes I produce one kind of breakpoint and the other one ? Is it a bug ? (Only the working one, with radio buttons should be produced ?). It is not clear for me. What means the text: "Use parent breakpoint condition, which is not set" ? What is a parent breakpoint ? Why are they -when working- produced by pair ? Actually setting a working breakpoint seems to work randomly for me. Does anyone have the same problems ?
Asked
by jldb.
Last updated
.
Post marked as solved
202 Views

Swift 5 (Xcode Version 12.3): Program stopping at nonexistent breakpoint

I have some code that fetches entity model data in core-data, but when I built or debug in a simulator or phone the result will have Thread 39: EXC_BREAKPOINT (code=1, subcode=0x1afa582ec) and it is stopped at line 6 in the code bellow let context = self.managedObjectContext  let fetchRequest: NSFetchRequestSomeEntityModel = SomeEntityModel.fetchRequest()     fetchRequest.predicate = NSPredicate(format: "id=%@", "001")   let fetchResult = try context.fetch(fetchRequest) but, if I stop the debug, and run the app, not in the Xcode, the feature that develops those codes didn't stop, and it is running fine. Does anyone have a solution to why this happens?
Asked Last updated
.
Post marked as solved
12k Views

iphone has denied the launch request

I'm tring to debug an application on real iphone using automatically manage signing with personal team. But every time application start xcode throw an error:iphone has denied the launch request.Then ,application on iphone won't stop,but debugging stop.I tried to restart iphone 、imac 、xcode,nothing changed. This works well on simulator. How could i sove this issue?can't personal team debug on real phone?
Asked
by SunEc.
Last updated
.