vscode-csharp icon indicating copy to clipboard operation
vscode-csharp copied to clipboard

VS Code extension: Improve experience when choosing process to attach

Open dougbu opened this issue 10 years ago • 3 comments

The processName launch.json property is too general e.g. many dotnet processes may be running on the system. And the processId property is too specific i.e. should never need to be saved to a file. Suggest discriminating using command-line arguments. In the dotnet case (even when using dotnet run), these arguments include the relative path to the DLL of interest.

Failing that, suggest bringing up a dialogue to choose between processes that match the discriminators provided in launch.json. Even better if that dialogue shows the full command line of the potential matches.

dougbu avatar May 10 '16 21:05 dougbu

I don't think there are ways to obtain the command line reliably across all platforms.

gregg-miskelly avatar May 11 '16 00:05 gregg-miskelly

@rajkumar42 can you resolve this when you enable the new attach to process chooser?

@dougbu we are enabling a new experience with our next version of the extension which doesn't quite match your original request, but hopefully you will find this much better.

gregg-miskelly avatar Jul 06 '16 19:07 gregg-miskelly

merged. it'll be in the upcoming release.

rajkumar42 avatar Jul 07 '16 20:07 rajkumar42