aBothe / Mono-D

D Add-In for MonoDevelop
http://wiki.dlang.org/Mono-D
Other
113 stars 26 forks source link

Debugging operation failed: Console could not be created #627

Closed ahmetsait closed 8 years ago

ahmetsait commented 8 years ago

[Mono Develop 5.9.4 via Mono Runtime 4.0.2 (Stable 4.0.2.5/c99aa0c Wed Jun 24 10:04:37 UTC 2015) (64-bit) and GTK+ 2.24.23 (Ambiance theme) with Mono-D 2.13.5 on Ubuntu 14.04 LTS as x64]

A simple failure. When I press that big "debug" button it tries to work for a while and then throws an error message saying "Console could not be created" with title "Debugging operation failed". When I press CTRL+F5 it says "/home/nx1337/Monodios/Monodios/bin/Release/Monodios exited with code: 1" but I can actually run the app itself without any problem.

Can we somewhat make it optional to use Mono Develop's built-in console and execute x-terminal-emulator (or gnome-terminal or xterm if that doesn't exist) ? At least I want to be able to run my D apps...

aBothe commented 8 years ago

There is a gdb debugging front-end available in the MonoDevelop Addins Manager - although it's not the actual D-oriented debugging service you will get then. You may also just uninstall it to be able to run the program itself without a debugger immediately via the 'Play'-Button. Please excuse the long answer delays, too busy with working and stuff :/

Swoorup commented 8 years ago

Is there a workaround for this. Stuck in the same issue!

ahmetsait commented 8 years ago

Here is some relevant info found in log files:

INFO [2016-06-30 19:45:05Z]: CodeTemplateService: No user templates, reading default templates.
Failed to parse arguments: Option "--disable-factory" is no longer supported in this version of gnome-terminal.
ERROR [2016-06-30 19:47:46Z]: Debugger operation failed
System.InvalidOperationException: Console could not be created.
  at MonoDevelop.Debugger.Gdb.GdbSession.OnRun (Mono.Debugging.Client.DebuggerStartInfo startInfo) [0x00000] in <filename unknown>:0 
  at Mono.Debugging.Client.DebuggerSession+<Run>c__AnonStorey0.<>m__0 () [0x00000] in <filename unknown>:0 
Failed to parse arguments: Option "--disable-factory" is no longer supported in this version of gnome-terminal.
ERROR [2016-06-30 19:48:09Z]: Debugger operation failed
System.InvalidOperationException: Console could not be created.
  at MonoDevelop.Debugger.Gdb.GdbSession.OnRun (Mono.Debugging.Client.DebuggerStartInfo startInfo) [0x00000] in <filename unknown>:0 
  at Mono.Debugging.Client.DebuggerSession+<Run>c__AnonStorey0.<>m__0 () [0x00000] in <filename unknown>:0 

Full log file: Ide.2016-06-30__19-39-14.log.zip