androidStudioPackages.{stable,beta,canary,dev}: Fix LLDB debugger#112349
androidStudioPackages.{stable,beta,canary,dev}: Fix LLDB debugger#112349kevincox merged 1 commit intoNixOS:masterfrom
Conversation
|
/marvin opt-in |
|
Hi! I'm an experimental bot. My goal is to guide this PR through its stages, hopefully ending with a merge. You can read up on the usage here. |
There was a problem hiding this comment.
No issues with the Android Studio debugger after applying this PR, it correctly finds all the libraries it needs.
Result of nixpkgs-review pr 112349 run on x86_64-linux 1
4 packages built:
- android-studio
- androidStudioPackages.beta
- androidStudioPackages.canary
- androidStudioPackages.dev
|
Result of 4 packages built:
|
1771738 to
9d4df01
Compare
9d4df01 to
3c350e4
Compare
|
What was initially thought to be an unrelated issue was caused by Nix, on debugging the following error would occur: $ adb shell cat /data/local/tmp/lldb-server | run-as skyline.emu sh -c 'cat > /data/data/skyline.emu/lldb/bin/lldb-server && chmod 700 /data/data/skyline.emu/lldb/bin/lldb-server'
$ adb shell cat /data/local/tmp/start_lldb_server.sh | run-as application.package sh -c 'cat > /data/data/application.package/lldb/bin/start_lldb_server.sh && chmod 700 /data/data/application.package/lldb/bin/start_lldb_server.sh'
Starting LLDB server: /data/data/skyline.emu/lldb/bin/start_lldb_server.sh /data/data/skyline.emu/lldb unix-abstract /application.package-0 platform-1612742810312.sock "lldb process:gdb-remote packets"
failed to get reply to handshake packetAs it turns out, a script deployed to the device There are a few host bash scripts but they should be evaluated correctly due to Android Studio running in FSH, this has been verified for all instances of the scripts present in Android Studio at the moment. It should be additionally noted that Android Studio ships with few scripts that run on the host, it mainly retrieves scripts to run from the packages it downloads. |
willfaust
left a comment
There was a problem hiding this comment.
Debugging native applications on Android Studio also works for me with this PR.
Result of nixpkgs-review pr 112349 run on x86_64-linux 1
4 packages built:
- android-studio
- androidStudioPackages.beta
- androidStudioPackages.canary
- androidStudioPackages.dev
Motivation for this change
@PixelyIon encountered an issue with Android Studio's LLDB debugger not working on Nix, so together we fixed it.
Fixes: #112266
Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)nix path-info -Sbefore and after)