Bug 10987 - Make it possible to enumerate attachable Mono processes
Summary: Make it possible to enumerate attachable Mono processes
Status: NEW
Alias: None
Product: Runtime
Classification: Mono
Component: Debugger (show other bugs)
Version: unspecified
Hardware: PC Mac OS
: --- enhancement
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-03-07 21:03 UTC by Mikayla Hutchinson [MSFT]
Modified: 2015-10-30 10:51 UTC (History)
4 users (show)

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


Attachments

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.

Note You need to log in before you can comment on or make changes to this bug.