monodevelop 3-支持“附加到处理" [英] monodevelop 3 - support for "Attach to process"

查看:72
本文介绍了monodevelop 3-支持“附加到处理"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MonoDevelop 3支持是否附加到流程上?如果可以的话,有人可以指出它在哪里或任何可行的解决方法.

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

推荐答案

简短的答案是:不,据我所知.

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

但是,如果您希望在不从MonoDevelop中启动项目的情况下进行调试,则可以使用此处介绍的软件调试器.做到这一点的工作流程是:

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. 通过将环境变量MONODEVELOP_SDB_TEST设置为某个值,在monodevelop中启用对软调试器的自定义命令
  2. 启动monodevelop
  3. 转到运行->运行方式->自定义命令Mono Soft Debugger
  4. 输入被调试方可以访问MonoDevelop的计算机的端口号和IP地址.将其他字段留空.
  5. Listen.
  6. 使用--debug和--debugger-agent = transport = dt_socket,address = [monodevelop中指定的IP]:[monomono中指定的端口]启动应用程序
  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.

我知道这不是附加到流程",但是由于您对意图的描述非常有限,因此这可能对您有价值.

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.

这篇关于monodevelop 3-支持“附加到处理"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆