Skip to content

platform connect fails with "Invalid URL" when using remote-android, despite Help docs stating URL syntax. #1370

@Versirity

Description

@Versirity

Hi, thanks for maintaining CodeLLDB. I ran into an issue with remote-android platform connect and would appreciate any guidance.

OS: ubuntu24.04
VSCode version: 1.107.1
CodeLLDB version: 1.21.1
Compiler: rustc 1.92.0 (targeting aarch64-linux-android) (flutter jni)
Debuggee: aarch64-linux-android (Native Rust library .so loaded in an Android APK)

Hello The platform connect command fails with an "Invalid URL" error when using the remote-android platform, even though the provided URL is valid and works perfectly with the remote-gdb-server platform. The documentation (help platform connect) implies that connect:// syntax should be supported generally.

Steps to Reproduce:

Setup an Android device and forward a debug port locally: adb forward tcp:5039 tcp:5039.

Start lldb-server on the device listening on port 5039.

In the CodeLLDB Debug Console, execute the following:

platform select remote-android
platform connect connect://localhost:5039

Actual Behavior: The command fails immediately with: error: Invalid URL:

Expected Behavior: It should connect to the target listening on localhost:5039 (just like other remote platforms), or the help documentation should explicitly state that remote-android does not support URL syntax.

Additional Context: If I simply switch the platform to remote-gdb-server, the exact same connection command works:

platform select remote-gdb-server
platform connect connect://localhost:5039
# Result: Connected: yes

This suggests the issue is specific to the argument parsing logic within the remote-android plugin.

Platform: remote-android
Connected: no

platform connect connect://localhost:5039
error: Invalid URL: 

platform connect connect://127.0.0.1:5039
error: Invalid URL:

Metadata

Metadata

Labels

cause:LLDBCaused by a bug in LLDB engine. Generally, this is not something I can fix myself.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions