The app terminates unexpectedly during debugging, interrupting the session
Cause: The Lifecycle Manager (LCM) terminates apps that don’t send heartbeat signals. Breakpoints pause your app, preventing heartbeats, causing termination. Solution: Verify your device supports timeout disabling.-
From the device’s shell, run:
-
Look for the
--disable-app-timeoutflag in the debug command output. -
Prevent app termination using one of these options:
Option 1: Using Vega Studio (Recommended)
a. Open your launch.json file.
b. Add or modify the
disableAppTimeoutsetting totrue:c. Save and restart your debugging session. Option 2: Using Vega CLI a. Disable timeouts for your component:b. Launch your app:c. Attach your debugger in Vega Studio. -
Re-enable timeouts after debugging using one of these options:
- Vega Studio: Launch the app without the debug configuration
- Vega CLI: Run then relaunch app
GDB native debugging error: liblzma.5.dylib not found
Error:-
Install the XZ library:
-
If already installed, try reinstalling:
-
Verify symbolic links:
If the problem persists, try these additional steps:
-
Clear Homebrew cache:
-
Update Homebrew:
- Verify that you have the latest version of Homebrew.
- Some macOS versions might require additional security configurations for GDB.
- Confirm that you have the necessary permissions to access the library locations.
Related topics
- Perform Line-by-Line Debugging with Vega Studio
- Use Chrome DevTools for App Profiling
- Monitor Network Traffic with Charles Proxy

