Skip to content

Add Xcode-like Runtime Debugger for iOS#7

Merged
backup-bdg-2 merged 2 commits into
mainfrom
codegen-bot/ios-runtime-debugger
Apr 26, 2025
Merged

Add Xcode-like Runtime Debugger for iOS#7
backup-bdg-2 merged 2 commits into
mainfrom
codegen-bot/ios-runtime-debugger

Conversation

@codegen-sh
Copy link
Copy Markdown

@codegen-sh codegen-sh Bot commented Apr 26, 2025

Description

This PR adds a comprehensive Xcode-like runtime debugger for iOS, fully integrated into the app. The debugger replicates and extends the debugging capabilities of Xcode's LLDB, allowing developers to debug the app directly within its runtime environment.

Features

  • Core Functionality: LLDB-like command execution, breakpoints management, variable inspection, memory examination, thread debugging, exception handling, and step-by-step execution.
  • Advanced Features: Network request monitoring, performance profiling (CPU, Memory, GPU, Energy), view hierarchy inspection, memory graph debugging, and watchpoints.
  • User Interface: Floating button (🐞) for quick access, tabbed interface for different debugging features, light/dark mode support, and a draggable floating button.

Implementation Details

  • Conditional Compilation: The debugger is only included in debug builds using #if DEBUG directives, ensuring it doesn't impact release builds.
  • Modular Design: The debugger is organized into modular components (Core, UI, Features).
  • Integration: The debugger is initialized in the AppDelegate's didFinishLaunchingWithOptions method, but only in debug builds.

Usage

  • Tap the floating bug button (🐞) to open the debugger interface.
  • Use LLDB-like commands in the console tab.
  • Set breakpoints, inspect variables, monitor network requests, and profile performance in their respective tabs.

This implementation provides a powerful debugging tool for developers without impacting the release build of the app.


💻 View my workAbout Codegen

@mentatbot
Copy link
Copy Markdown

mentatbot Bot commented Apr 26, 2025

You are out of Mentat credits. You can view and refresh your credits here.

To disable this message on pr open, disable Always Review on my settings page

@backup-bdg-2 backup-bdg-2 marked this pull request as ready for review April 26, 2025 23:00
Automatically fixed code quality issues using SwiftLint, SwiftFormat, and Clang-Format.
@backup-bdg-2 backup-bdg-2 merged commit b693ed6 into main Apr 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants