1. I ran debugger for a solution where a thread tried to access controls of form not created by the thread (i realised later). The debugger just did not show any progress, no Trace.WriteLine outputs were noticed in the Output window.
2. I corrected the code and tried to run debug. The debugger did not run this time. Although with out the debugger, the application was running fine.
3. I uninstalled the SharpDevelop Version : 4.4.1.9722 and tried SharpDevelop Version : 4.4.1.9727 and SharpDevelop_5.0.0.3580. The debugger did not run.
4. Now i installed SharpDevelop Version : 4.4.1.9727 and noticed that the debuger was not running for any Windows Solutions (even without Threads / Task) but was runnig for Console Solutions. On trying to pause / step over etc the debugger (on my Windows Solution) reported the under mentioned Unhandled WPF exception.
5. I have even tried re-installting dependencies : .NET 4.5.1 and Windows 7 SDK, but the issue remains unresolved.
SharpDevelop Version : 4.4.1.9727-9bc803af
.NET Version : 4.0.30319.18408
OS Version : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture : English (United States) (en-US)
Working Set Memory : 181952kb
GC Heap Memory : 53832kb
Unhandled WPF exception
Exception thrown:
System.NullReferenceException: Object reference not set to an instance of an object.
at Debugger.Process.RaisePausedEvents()
at Debugger.Process.Break()
at ICSharpCode.SharpDevelop.Services.WindowsDebugger.Break()
at ICSharpCode.SharpDevelop.Project.Commands.BreakDebuggingCommand.Run()
at ICSharpCode.Core.Presentation.CommandWrapper.Execute(Object parameter)
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at ICSharpCode.Core.Presentation.ToolBarButton.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
---- Recent log messages:
17:15:23.329 [1] DEBUG - Debugger: Executing D:\HIS\SolutionHisFBD\HISObfuscation\Debug\PatientRegd.exe
17:15:23.357 [1] DEBUG - Debugger: Callback: CreateProcess
17:15:23.359 [1] DEBUG - Debugger: Callback: CreateAppDomain
17:15:23.376 [1] DEBUG - Debugger: Callback: NameChange: pAppDomain
17:15:23.377 [1] DEBUG - Debugger: Callback: LoadAssembly
17:15:23.379 [1] DEBUG - Debugger: Callback: LoadModule C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll
17:15:29.869 [1] DEBUG - Activated feature'ICSharpCode.SharpDevelop.Project.Commands.StepDebuggingCommand', activation=Toolbar
17:15:29.869 [1] INFO - Debugger Command: StepOver
17:15:29.870 [1] INFO - ${res:XML.MainMenu.DebugMenu.Error.ProcessRunning}
17:15:33.161 [18] DEBUG - Telling worker process to exit
17:15:33.161 [18] DEBUG - Waiting for thread-join
17:15:33.162 [8] DEBUG - Cannot read from WorkerProcess 3192: end of stream
17:15:33.162 [8] DEBUG - Stopped reading from WorkerProcess 3192.
17:15:33.162 [8] DEBUG - Telling worker process to exit
17:15:33.162 [8] DEBUG - End of reader thread on WorkerProcess 3192.
17:15:33.162 [18] DEBUG - Joined!
17:15:33.223 [17] DEBUG - Telling worker process to exit
17:15:33.223 [17] DEBUG - Waiting for thread-join
17:15:33.224 [5] DEBUG - Cannot read from WorkerProcess 4420: end of stream
17:15:33.224 [5] DEBUG - Stopped reading from WorkerProcess 4420.
17:15:33.224 [5] DEBUG - Telling worker process to exit
17:15:33.224 [5] DEBUG - End of reader thread on WorkerProcess 4420.
17:15:33.224 [17] DEBUG - Joined!
17:15:35.623 [1] DEBUG - Activated feature'ICSharpCode.SharpDevelop.Project.Commands.BreakDebuggingCommand', activation=Toolbar
17:15:35.623 [1] INFO - Debugger Command: Break
---- Post-error application state information:
Installed 3rd party AddIns:
Workbench.ActiveContent: [AvalonEditViewContent D:\HIS\SolutionHisFBD\SolutionHisFBD\PatientRegd\FPathology.cs]
ProjectService.OpenSolution: [Solution: FileName=D:\HIS\SolutionHisFBD\SolutionHisFBD\SolutionHisFBD.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: PatientRegd]