Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to hit breakpoints in MonoDevelop

On my archlinux system I did a fresh installation of:

  • mono 3.0.7
  • monodevelop 4.0.8
  • monodevelop-debugger-gdb 4.0

When I debug an application the debugger doesn't stop on the breakpoints, even not on the System.Diagnostics.Debugger.Break (); code.
And an error windows is displayed with the following message :

Could not connect to the debugger

Does anyone know how to fix it?

like image 437
Nicolas Avatar asked May 31 '13 21:05

Nicolas


3 Answers

I had a similar problem - breakpoints was not triggered while checkbox "Use MSBuild build engine" was checked in the project properties.

like image 154
Vladimir Shiyanov Avatar answered Sep 17 '22 18:09

Vladimir Shiyanov


This is due to a recent gnome-terminal change. Recent gnome-terminal no longer accepts the --disable-factory argument.

Install the xterm package, then in a gnome-terminal session do the following:

$ unset GNOME_DESKTOP_SESSION_ID 
$ monodevelop

This will cause monodevelop to use xterm as its external terminal and all should be well.

like image 6
Kayvan Sylvan Avatar answered Nov 02 '22 07:11

Kayvan Sylvan


As a workaround untick the "Run on external console" checkbox in your running project settings. You can find this option in the "Run" tab from the settings pane.

like image 4
dna Avatar answered Nov 02 '22 09:11

dna