Bug 5046 - [patch] Debugging a console application with the FallBack terminal fails
Summary: [patch] Debugging a console application with the FallBack terminal fails
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: Trunk
Hardware: PC Other
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-05-13 05:09 UTC by romain
Modified: 2012-05-14 12:23 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Fix (444 bytes, application/octet-stream)
2012-05-13 05:09 UTC, romain
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description romain 2012-05-13 05:09:48 UTC
Created attachment 1865 [details]
Fix

When trying to debug a console application and MonoDevelop wants to use XTerm as the external console, it fails to do so because XTerm's binary filename is not saved after being serached.

This results in an error message: 

ERROR [2012-05-13 10:56:26Z]: Error in debugger
System.InvalidOperationException: File name has not been set
  at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00096] in /usr/home/romain/Projects/bsd-sharp/trunk/lang/mono/work/mono-2.11.1/mcs/class/System/System.Diagnostics/Process.cs:1208 
  at System.Diagnostics.Process.Start () [0x0002c] in /usr/home/romain/Projects/bsd-sharp/trunk/lang/mono/work/mono-2.11.1/mcs/class/System/System.Diagnostics/Process.cs:1218 
  at MonoDevelop.Core.Execution.ProcessWrapper.Start () [0x00007] in /usr/home/romain/Projects/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessWrapper.cs:27 
  at (wrapper remoting-invoke-with-check) MonoDevelop.Core.Execution.ProcessWrapper:Start ()
  at MonoDevelop.Platform.GnomePlatform.StartConsoleProcess (System.String command, System.String arguments, System.String workingDirectory, IDictionary`2 environmentVariables, System.String title, Boolean pauseWhenFinished) [0x000ac] in /usr/home/romain/Projects/monodevelop/main/src/addins/GnomePlatform/GnomePlatform.cs:220 
  at MonoDevelop.Core.Execution.ProcessService.StartConsoleProcess (System.String command, System.String arguments, System.String workingDirectory, IDictionary`2 environmentVariables, IConsole console, System.EventHandler exited) [0x000ed] in /usr/home/romain/Projects/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessService.cs:211 
  at MonoDevelop.Debugger.Soft.SoftDebuggerEngine+<CreateDebuggerStartInfo>c__AnonStorey1.<>m__6 (System.Diagnostics.ProcessStartInfo info) [0x00001] in /usr/home/romain/Projects/monodevelop/main/src/addins/MonoDevelop.Debugger.Soft/MonoDevelop.Debugger.Soft/SoftDebuggerEngine.cs:84 
  at Mono.Debugger.Soft.VirtualMachineManager.BeginLaunch (System.Diagnostics.ProcessStartInfo info, System.AsyncCallback callback, Mono.Debugger.Soft.LaunchOptions options) [0x0013a] in /usr/home/romain/Projects/monodevelop/main/contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/VirtualMachineManager.cs:101 
  at Mono.Debugging.Soft.SoftDebuggerSession.StartLaunching (Mono.Debugging.Soft.SoftDebuggerStartInfo dsi) [0x001d9] in /usr/home/romain/Projects/monodevelop/main/src/addins/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft/SoftDebuggerSession.cs:209 
  at Mono.Debugging.Soft.SoftDebuggerSession.OnRun (Mono.Debugging.Client.DebuggerStartInfo startInfo) [0x0002f] in /usr/home/romain/Projects/monodevelop/main/src/addins/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft/SoftDebuggerSession.cs:111 
  at Mono.Debugging.Client.DebuggerSession+<Run>c__AnonStorey6.<>m__3 () [0x00002] in /usr/home/romain/Projects/monodevelop/main/src/core/Mono.Debugging/Mono.Debugging.Client/DebuggerSession.cs:306
Comment 1 Mikayla Hutchinson [MSFT] 2012-05-14 12:23:55 UTC
Committed, thanks!