duraidabdul / localconsole Goto Github PK
View Code? Open in Web Editor NEWIn-app console and debug tools for iOS developers
License: MIT License
In-app console and debug tools for iOS developers
License: MIT License
Hi, I found a bug that can't pop navigation controller after LocalConsole is shown.
Here is screen records when the bug is occurred.
I uploaded sample project that reproduce this issue.
https://github.com/0x0c/LocalConsoleBug
Are there any workarounds, or plans to fix this issue?
Version 1.11.0 causes the console to no longer sit on top of presented view controllers. Also when you tap the more menu you get:
[Presentation] Presenting view controller <_UIContextMenuActionsOnlyViewController: 0x7fb2bf605470> from detached view controller <LocalConsole.ConsoleViewController: 0x7fb2be27ecb0> is discouraged.
Thanks for creating this useful library. I tested on an iPad app but the UI seems locked in portrait mode. Is there some way to enable auto rotation?
When running on an iPad or iPad simulator that has no home button, if LCManager.shared.isVisible
is true
, all other input seems to be blocked. Touches don't get passed down.
Did a bit of debugging and it seems that when running on an iPad with no home button, the ConsoleWindow
hit test will return a View when we're not expecting it to (would be expecting that function to be returning nil
).
It's unclear to me why this would behave differently on different iPads, but maybe this makes sense to someone smarter than me?
great library!
โญ๏ธ feature request: ability to share console contents via share sheet
The application crashes when I press the "Share Text..." button.
SwiftUI Life Cycle
iOS 15.7
iPad Pro (9.7")
2022-10-21 16:18:09.633928+0300 XXX[26460:1212498] invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution.
2022-10-21 16:18:52.754372+0300 XXX[26460:1212498] [Default] Task XXX[26460]/1#3 LF=0 couldn't find entitlement CopresenceCore.Entitlement.publicAPI error nil
2022-10-21 16:18:52.867519+0300 XXX[26460:1212498] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'UIPopoverPresentationController (<UIPopoverPresentationController: 0x104b88760>) should have a non-nil sourceView or barButtonItem set before the presentation occurs.'
*** First throw call stack:
(0x182651d1c 0x199e76ee4 0x185183998 0x184b0ea6c 0x185189cf4 0x184c06234 0x184b21764 0x104888700 0x104889fc8 0x1048988ac 0x1048984fc 0x18260d0d4 0x1825ca5f8 0x1825dd250 0x1a2f14988 0x184ddfa88 0x184b78fc8 0x189e31d68 0x189d7c83c 0x189d621dc 0x100dd775c 0x100dd7800 0x10425c4d0)
libc++abi: terminating with uncaught exception of type NSException
dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib
*** Terminating app due to uncaught exception 'NSGenericException', reason: 'UIPopoverPresentationController (<UIPopoverPresentationController: 0x104b88760>) should have a non-nil sourceView or barButtonItem set before the presentation occurs.'
terminating with uncaught exception of type NSException
Automatically hides when you move to the edge of the screen like PiP-style
Here is my support videohttps://youtu.be/uJ0cO8htkTs
Hello! This is such a cool little package thanks for making it.
I was wondering if you've considered making it possible to disable debug features. For example, I don't really want to have user defaults and the restart springboard options available, but show view frames is neat. I'll create a PR for it. :)
First off, awesome job!
Thanks for making this awesome tool!
I use it in a tab bar controller app. Unfortunately when the console is shown the tab bar gets another empty tab added for the console. Probably this window.rootViewController?.addChild(consoleViewController)
is the problem.
Any idea on how to fix this?
Hey! Thanks for making this great tool.
Can we have a "Close Console" option (basically setting console.isVisible = false) similar to the "Clear Console" or the ability to add our own options?
libc++abi: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: sourceNode'
terminating with uncaught exception of type NSException
Hi, how do I make the console view move? It might be a SwiftUI problem, but I can't drag the console view to any position and I can't find any public methods to call either.
Hi, are you planing to make LocalConsole SwiftUI version as much as possible? If you can, it will be great. Awesome work btw, thanks.
It would be awesome if the console widget had a light and dark themes.
Seems like there is an issue ๐:
Main Thread Checker: UI API called on a background thread: -[UITextView text]
PID: 6701, TID: 2996419, Thread name: (none), Queue name: NSOperationQueue 0x7f8685ca3840 (QOS: UNSPECIFIED), QoS: 0
Backtrace:
4 ***** ***** 0x0000000104fdfbba $s12LocalConsole9LCManagerC5printyyypFSSyXEfU_ + 202
5 ***** ***** 0x0000000104fdf9f9 $s12LocalConsole9LCManagerC5printyyypF + 665
6 ***** ***** 0x0000000104ae715b $s10CloudyLogs6LoggerC3log_4typeySS_ypSgtFZ + 235
7 ***** ***** 0x0000000104edeb3d $s6Shared6O13CommunicationEADC14attemptToQueue7channelSo16NSBlockOperationCSgAE7ChannelO_tFyycfU2_ + 477
8 ***** ***** 0x0000000104ede7c0 $sIeg_IeyB_TR + 48
9 Foundation 0x00007fff207fa0be NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK + 7
10 Foundation 0x00007fff207f9fb6 -[NSBlockOperation main] + 98
11 Foundation 0x00007fff207fcfd2 NSOPERATION_IS_INVOKING_MAIN + 17
12 Foundation 0x00007fff207f9200 -[NSOperation start] + 785
13 Foundation 0x00007fff207fd947 NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION + 17
14 Foundation 0x00007fff207fd46a __NSOQSchedule_f + 182
15 libdispatch.dylib 0x000000010635e2c5 _dispatch_block_async_invoke2 + 83
16 libdispatch.dylib 0x000000010634f74e _dispatch_client_callout + 8
17 libdispatch.dylib 0x0000000106352066 _dispatch_continuation_pop + 557
18 libdispatch.dylib 0x000000010635147b _dispatch_async_redirect_invoke + 770
19 libdispatch.dylib 0x00000001063611b0 _dispatch_root_queue_drain + 351
20 libdispatch.dylib 0x0000000106361b0f _dispatch_worker_thread2 + 135
21 libsystem_pthread.dylib 0x00007fff60340417 pthread_wqthread + 244
22 libsystem_pthread.dylib 0x00007fff6033f42f start_wqthread + 15
2021-06-21 18:01:24.916817-0500 ***** *****[6701:2996419] [reports] Main Thread Checker: UI API called on a background thread: -[UITextView text]
PID: 6701, TID: 2996419, Thread name: (none), Queue name: NSOperationQueue 0x7f8685ca3840 (QOS: UNSPECIFIED), QoS: 0
Backtrace:
4 ***** ***** 0x0000000104fdfbba $s12LocalConsole9LCManagerC5printyyypFSSyXEfU + 202
5 ***** ***** 0x0000000104fdf9f9 $s12LocalConsole9LCManagerC5printyyypF + 665
6 ***** ***** 0x0000000104ae715b $s10CloudyLogs6LoggerC3log_4typeySS_ypSgtFZ + 235
7 ***** ***** 0x0000000104edeb3d $s6Shared6O13CommunicationEADC14attemptToQueue7channelSo16NSBlockOperationCSgAE7ChannelO_tFyycfU2_ + 477
8 ***** ***** 0x0000000104ede7c0 $sIeg_IeyB_TR + 48
9 Foundation 0x00007fff207fa0be NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK + 7
10 Foundation 0x00007fff207f9fb6 -[NSBlockOperation main] + 98
11 Foundation 0x00007fff207fcfd2 NSOPERATION_IS_INVOKING_MAIN + 17
12 Foundation 0x00007fff207f9200 -[NSOperation start] + 785
13 Foundation 0x00007fff207fd947 NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION + 17
14 Foundation 0x00007fff207fd46a __NSOQSchedule_f + 182
15 libdispatch.dylib 0x000000010635e2c5 _dispatch_block_async_invoke2 + 83
16 libdispatch.dylib 0x000000010634f74e _dispatch_client_callout + 8
17 libdispatch.dylib 0x0000000106352066 _dispatch_continuation_pop + 557
18 libdispatch.dylib 0x000000010635147b _dispatch_async_redirect_invoke + 770
19 libdispatch.dylib 0x00000001063611b0 _dispatch_root_queue_drain + 351
20 libdispatch.dylib 0x0000000106361b0f _dispatch_worker_thread2 + 135
21 libsystem_pthread.dylib 0x00007fff60340417 _pthread_wqthread + 244
22 libsystem_pthread.dylib 0x00007fff6033f42f start_wqthread + 15`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.