codelldb icon indicating copy to clipboard operation
codelldb copied to clipboard

Add support for pickProcess with remote debugging via platformInitCommands

Open nkronlage opened this issue 1 year ago • 2 comments

I'd love to be able to use ${command:pickProcess} with remote debugging to Android but that currently did not work because the platform process list command issued by pickProcess does not let you specify the remote platform.

This is a proposal to have a "platformInitCommands" list that is used both in debugger setup and in pickProcess to let you select/connect the platform.

Here's an example of using `"pid": "${command:pickProcess}" when debugging on an Android emulator:

image

nkronlage avatar Sep 30 '23 19:09 nkronlage

Good idea! However, I don't like the proliferation of extra options. Can you think of any reason initCommands can't be used for process picker?

vadimcn avatar Sep 30 '23 23:09 vadimcn

That should be ok! Was worried about breaking people if they do something that doesn't work well with pickProcess in their initCommands. But pickProcess never really worked with remote stuff before so that shouldn't be a problem.

nkronlage avatar Oct 01 '23 00:10 nkronlage