Monodevelop: `Waiting for debugger`

南笙酒味 提交于 2020-01-24 08:54:07

问题


I am trying to debug this Mono desktop software in Monodevelop.

I imported the SLN file, ran Build all with success, but when I press the Debug button I get this popup that stays waiting forever saying Waiting for debugger:

The output says:

User assembly '/home/nico/src/SparkleShare/SparkleShare/bin/SparkleShare.exe' is missing. Debugger will now debug all code, not just user code.

My first line of code is a Console.WriteLine whose output does not appear anywhere.
Am I doing something wrong?

Monodevelop 3.0.3.2 on Ubuntu 2012.10.
Nothing special appears on the console with monodevelop -v -v -v.

When I press Start Without Debugging instead of Start Debugging, the app crashes immediately saying The application exited with code: 255, but I need Debug to find where the problem is.

When I press Debug Application... and select bin/SparkleShare.exe, Monodevelop does nothing. The UI does not react in any way, it is like I pressed nothing.

When I run the application from command line, it runs fine (no crash), but Monodevelop does not react in any way, so I can't use it to debug:

mono --debug  bin/SparkleShare.exe

Debugging in Monodevelop works fine with a solution created from scratch.

Here is a hack to debug in Monodevelop that works here, but it is quite painful, and unsupported.

Note: It is not the same problem as this question, which is about MonoTouch waiting for a phone simulator... the suggestions over there are about the simulator or updating XCode... no simulator nor XCode here.


回答1:


MonoDevelop 2.8.6.3 is kinda old.

I recommend you upgrading to 3.x or even the master branch, which has a lot of improvements and probably fixes your issue.



来源:https://stackoverflow.com/questions/11963904/monodevelop-waiting-for-debugger

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!