在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:FLEXTool/FLEX开源软件地址:https://github.com/FLEXTool/FLEX开源编程语言:Objective-C 97.1%开源软件介绍:FLEXFLEX (Flipboard Explorer) is a set of in-app debugging and exploration tools for iOS development. When presented, FLEX shows a toolbar that lives in a window above your application. From this toolbar, you can view and modify nearly every piece of state in your running application. Give Yourself Debugging Superpowers
Unlike many other debugging tools, FLEX runs entirely inside your app, so you don't need to be connected to LLDB/Xcode or a different remote debugging server. It works well in the simulator and on physical devices. UsageIn the iOS simulator, you can use keyboard shortcuts to activate FLEX. Short version: // Objective-C
[[FLEXManager sharedManager] showExplorer]; // Swift
FLEXManager.shared.showExplorer() More complete version: #if DEBUG
#import "FLEXManager.h"
#endif
...
- (void)handleSixFingerQuadrupleTap:(UITapGestureRecognizer *)tapRecognizer
{
#if DEBUG
if (tapRecognizer.state == UIGestureRecognizerStateRecognized) {
// This could also live in a handler for a keyboard shortcut, debug menu item, etc.
[[FLEXManager sharedManager] showExplorer];
}
#endif
} Aside: tvOSFLEX itself does not support tvOS out of the box. However, others have taken it upon themselves to port FLEX to tvOS. If you need tvOS support, seek out one of these forks. Here is one such fork. Feature ExamplesModify ViewsOnce a view is selected, you can tap on the info bar below the toolbar to present more details about the view. From there, you can modify properties and call methods. Network HistoryWhen enabled, network debugging allows you to view all requests made using NSURLConnection or NSURLSession. Settings allow you to adjust what kind of response bodies get cached and the maximum size limit of the response cache. You can choose to have network debugging enabled automatically on app launch. This setting is persisted across launches. All Objects on the HeapFLEX queries malloc for all the live allocated memory blocks and searches for ones that look like objects. You can see everything from here. Explore-at-addressIf you get your hands on an arbitrary address, you can try explore the object at that address, and FLEX will open it if it can verify the address points to a valid object. If FLEX isn't sure, it'll warn you and refuse to dereference the pointer. If you know better, however, you can choose to explore it anyway by choosing "Unsafe Explore" Simulator Keyboard ShortcutsDefault keyboard shortcuts allow you to activate the FLEX tools, scroll with the arrow keys, and close modals using the escape key. You can also add custom keyboard shortcuts via File BrowserView the file system within your app's bundle or sandbox container. FLEX shows file sizes, image previews, and pretty prints SQLite BrowserSQLite database files (with either 3D Touch in the SimulatorUsing a combination of the command, control, and shift keys, you can simulate different levels of 3D touch pressure in the simulator. Each key contributes 1/3 of maximum possible force. Note that you need to move the touch slightly to get pressure updates. Explore Loaded LibrariesGo digging for all things public and private. To learn more about a class, you can create an instance of it and explore its default state. You can also type in a class name to jump to that class directly if you know which class you're looking for. NSUserDefaults EditingFLEX allows you to edit defaults that are any combination of strings, numbers, arrays, and dictionaries. The input is parsed as Learning from Other AppsThe code injection is left as an exercise for the reader. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论