Skip to content

Instantly share code, notes, and snippets.

@DastanIqbal
Created June 22, 2022 12:58
Show Gist options
  • Save DastanIqbal/c53fb566366b4362e90a23a985bd86c6 to your computer and use it in GitHub Desktop.
Save DastanIqbal/c53fb566366b4362e90a23a985bd86c6 to your computer and use it in GitHub Desktop.
Debug app while building app to find the crash cause, mark the breakpoint where it's crashing
./gradlew assembleProdDebug --no-daemon -Dorg.gradle.debug=true -Dkotlin.compiler.execution.strategy="in-process" -Dkotlin.daemon.jvm.options="-agentlib:jdwp=transport=dt_socket\,server=y\,suspend=n\,address=5005"
#Android Studio -> Edit Configuration -> Remote Debugging -> Okay
# Enable allow parllel run, choose java jdk
# press debug or ctrl + D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment