vadimcn / codelldb

A native debugger extension for VSCode based on LLDB
https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb
MIT License
2.42k stars 237 forks source link

Add support for pickProcess with remote debugging via platformInitCommands #1001

Open nkronlage opened 9 months ago

nkronlage commented 9 months ago

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

vadimcn commented 9 months ago

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?

nkronlage commented 9 months ago

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.