Search code examples
c++debuggingmonodevelopfedoraxterm

Monodevelop C++ debugging issue


I'm running Fedora 20 (GNOME) and attempting to using monodevelop for my C++ class. I have the gbd add-on installed and xterm. When I attempt to debug it throws the error:

System.InvalidOperationException: Console could not be created. at MonoDevelop.Debugger.Gdb.GdbSession.OnRun (Mono.Debugging.Client.DebuggerStartInfo startInfo) [0x00000] in :0 at Mono.Debugging.Client.DebuggerSession+c__AnonStorey1.<>m__0 () [0x00000] in :0

I found this about my issue: https://github.com/aBothe/Mono-D/issues/396

A solution seems to be either removing gnome-terminal or making sure xterm isn't a symbolic link to another terminal. I'd rather preform the latter, but I'm not sure how to complete that solution.


Solution

  • 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.