Bug 10987 - Make it possible to enumerate attachable Mono processes
Summary: Make it possible to enumerate attachable Mono processes
Alias: None
Product: Runtime
Classification: Mono
Component: Debugger ()
Version: unspecified
Hardware: PC Mac OS
: --- enhancement
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2013-03-07 21:03 UTC by Mikayla Hutchinson [MSFT]
Modified: 2018-01-18 20:55 UTC (History)
5 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 10987 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Mikayla Hutchinson [MSFT] 2013-03-07 21:03:08 UTC
I had an idea that would make it possible to support attaching in the XS UI for the soft debugger.

Basically, we could define some directory (maybe in the user's home directory, or the temp directory - obviously permissions/security would be a concern) that would contain debugger enumeration files. Then, any Mono process started with debugger options including "server=y" would write a mono-soft-debugger-$PID file to this directory, containing the port om which the debugger was listening. It woudl also be possible to use a auto-assigned port (i.e. port 0) because the port could be determined by reading this file.

Then, MonoDevelop could list attachable processes simply by enumerating these files, and connect to the port described in the file.

It would also be nice to have a --attachable option for Mono that would start the soft debugger with port=0, server=y, suspend=n. Then one could set MONO_ENV_OPTIONS=--attachable and all processes would be attachable.
Comment 1 Ludovic Henry 2018-01-18 20:55:20 UTC
Is it still something we want to do?