Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

monodevelop 3 - support for "Attach to process"

Tags:

monodevelop

does MonoDevelop 3 support attach to process? If so can someone point out where it is or any possible workaround.

like image 380
kumar Avatar asked Sep 07 '12 05:09

kumar


1 Answers

The short answer is: No, not as far as i know.

However if you are looking to do debugging without launching the project from MonoDevelop there is an option of using the Soft debugger described here. The workflow for doing that is:

  1. Enable Custom commands to the softdebugger in monodevelop by setting environment variable MONODEVELOP_SDB_TEST to some value
  2. Start monodevelop
  3. Go to the Run -> Run With -> Custom Command Mono Soft Debugger
  4. Enter a port number and an IP address of your machine where the debugee can reach MonoDevelop. Leave the other fields empty.
  5. Press Listen.
  6. Start the application with parameters --debug and --debugger-agent=transport=dt_socket,address=[IP specified in monodevelop]:[Port specified in monodevelop]

And then you can inspect what is going on like normally using breakpoints stop exection, inspect variables and so forth. Notice that this enables you to deploy across machines as long as they can be reached over the network.

enter image description here

I know this is not "Attach to process" but as you are very limited in the description of your intent, this might be of value to you.

like image 69
jakobandersen Avatar answered Nov 07 '22 19:11

jakobandersen