6

MonoDevelop 3 是否支持附加到进程?如果是这样,有人可以指出它在哪里或任何可能的解决方法。

4

2 回答 2

7

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.

于 2012-09-12T20:31:19.963 回答
0

起初,我在我的 Monodevelop (2.8.6.3) IDE 中也找不到“附加到进程”,

但是当我安装“GUN debugger plugin for monodevelop”时,我可以在“RUN”memu中找到“attach to process”。因此,您应该为 monodevelop 安装 GNU 调试器插件以“附加到进程”

ps:我的monodevelop是在Ubuntu 12.04;“monodevelop 的 GUN 调试器插件”可以在“软件中心的 monodevelop”中找到。

于 2013-01-26T11:41:09.183 回答