Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ndk-build,cargo-apk: Launch activity directly through ndk-gdb #345

Merged
merged 1 commit into from
Sep 12, 2022

Conversation

MarijnS95
Copy link
Member

ndk-gdb passes -D to am start to make the process wait until the debugger is launched and ready, instead of possibly crashing the app before the debugger can catch it (paired with a nice "waiting for debugger" dialog and "Force close" button in Android). While we could also set the flag ourselves, this change simplifies the workflow on our end as well now that we don't have to run our own command, potentially get stuck on pidof returning multiple PIDs, and having to override no_logcat (#342).

(For the multiple-PID case though, we can optionally pass -f to make ndk-gdb kill the debugger and app first, if this ever becomes an issue.)

`ndk-gdb` passes `-D` to `am start` to make the process wait until the
debugger is launched and ready, instead of possibly crashing the app
before the debugger can catch it (paired with a nice "waiting for
debugger" dialog and "Force close" button in Android).  While we could
also set the flag ourselves, this change simplifies the workflow on our
end as well now that we don't have to run our own command, potentially
get stuck on `pidof` returning multiple PIDs, and having to override
`no_logcat` (#342).

(For the multiple-PID case though, we can optionally pass `-f` to make
`ndk-gdb` kill the debugger and app first, if this ever becomes an
issue.)
@MarijnS95 MarijnS95 merged commit 8afd63f into master Sep 12, 2022
@MarijnS95 MarijnS95 deleted the ndk-gdb-launch branch September 12, 2022 11:49
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.

None yet

1 participant