Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

Debugging console bug

$
0
0
When I tried to use the console while debugging to determine of a class:
typeof(T)
I encountered this.
SharpDevelop Version : 5.0.0.4218-Beta 3-193975c4
.NET Version         : 4.0.30319.34014
OS Version           : Microsoft Windows NT 6.3.9600.0
Current culture      : English (United States) (en-US)
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 378372kb
GC Heap Memory       : 169506kb

Unhandled WPF exception
Exception thrown:
System.Exception: Invalid value for TypeKind: TypeParameter
   at Debugger.Eval.TypeOf(Thread evalThread, IType type)
   at Debugger.AddIn.ExpressionEvaluationVisitor.Visit(TypeOfResolveResult result)
   at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
   at CallSite.Target(Closure , CallSite , ExpressionEvaluationVisitor , Object )
   at Debugger.AddIn.ExpressionEvaluationVisitor.Convert(ResolveResult result)
   at ICSharpCode.SharpDevelop.Services.WindowsDebugger.Evaluate(String code, Boolean allowMethodInvoke, Boolean allowSetValue)
   at ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad.Evaluate(String code)
   at ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad.AcceptCommand(String command)
   at ICSharpCode.SharpDevelop.Gui.AbstractConsolePad.HandleInput(Key key)
   at ICSharpCode.SharpDevelop.Gui.AbstractConsolePad.<.ctor>b__2(Object sender, KeyEventArgs e)
   at System.Windows.Input.KeyEventArgs.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.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
   at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
   at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
   at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
   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:
15:52:36.902 [39] DEBUG - Received command ReportEvent
15:52:36.903 [39] DEBUG - Received command ReportEvent
15:52:36.903 [39] DEBUG - Received command BuildDone
15:52:36.903 [39] INFO - Finished building IsKernel.ServieClients.Bitbucket.Tests, success=True
15:52:36.906 [UnitTesting Pipe Reader] DEBUG - Waiting for connection to pipe
15:52:36.907 [1] INFO - Saving layout file: C:\Users\Taranu\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Default.xml
15:52:36.908 [1] INFO - Loading layout file: C:\Users\Taranu\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Debug.xml, hideAllLostPads=False
15:52:36.986 [1] DEBUG - ChooseLayoutCommand.LayoutChanged(object,EventArgs)
15:52:36.986 [1] DEBUG - ChooseLayoutCommand.Run()
15:52:36.986 [1] INFO - Saving layout file: C:\Users\Taranu\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Debug.xml
15:52:36.991 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent D:\Dropbox\SW\csharp\libs\ServiceClients\Bitbucket\IsKernel.ServiceClients.Bitbucket\Infrastructure\MultiValueRequestParameter.cs]
15:52:37.800 [UnitTesting Pipe Reader] DEBUG - Start reading pipe
15:52:38.743 [1] INFO - Open file d:\Dropbox\SW\csharp\libs\ServiceClients\Bitbucket\IsKernel.ServiceClients.Bitbucket\Infrastructure\MultiValueRequestParameter.cs
15:52:38.747 [1] DEBUG - Resolved (Line 19, Col 5) to [TypeResolveResult System.String]
15:52:39.209 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad
15:52:41.612 [1] DEBUG - Resolved (Line 19, Col 5) to [ErrorResolveResult ?]
15:52:46.913 [10] DEBUG - Telling worker process to exit
15:52:46.913 [10] DEBUG - Waiting for thread-join
15:52:46.915 [39] DEBUG - Cannot read from WorkerProcess 9184: end of stream
15:52:46.915 [39] DEBUG - Stopped reading from WorkerProcess 9184.
15:52:46.915 [39] DEBUG - Telling worker process to exit
15:52:46.915 [39] DEBUG - End of reader thread on WorkerProcess 9184.
15:52:46.915 [10] DEBUG - Joined!
15:52:51.955 [1] DEBUG - Resolved (Line 19, Col 5) to [TypeOfResolveResult System.Type]
15:52:51.955 [1] ERROR - Unhandled WPF exception
--> Exception:
System.Exception: Invalid value for TypeKind: TypeParameter
   at Debugger.Eval.TypeOf(Thread evalThread, IType type)
   at Debugger.AddIn.ExpressionEvaluationVisitor.Visit(TypeOfResolveResult result)
   at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
   at CallSite.Target(Closure , CallSite , ExpressionEvaluationVisitor , Object )
   at Debugger.AddIn.ExpressionEvaluationVisitor.Convert(ResolveResult result)
   at ICSharpCode.SharpDevelop.Services.WindowsDebugger.Evaluate(String code, Boolean allowMethodInvoke, Boolean allowSetValue)
   at ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad.Evaluate(String code)
   at ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad.AcceptCommand(String command)
   at ICSharpCode.SharpDevelop.Gui.AbstractConsolePad.HandleInput(Key key)
   at ICSharpCode.SharpDevelop.Gui.AbstractConsolePad.<.ctor>b__2(Object sender, KeyEventArgs e)
   at System.Windows.Input.KeyEventArgs.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.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
   at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
   at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
   at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
   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)

---- Post-error application state information:
Installed 3rd party AddIns: 
ProjectService.CurrentSolution: [Solution D:\Dropbox\SW\csharp\libs\ServiceClients\Bitbucket\IsKernel.ServiceClients.Bitbucket.sln with 2 projects]
ProjectService.CurrentProject: 
Workbench.ActiveContent: ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad


Viewing all articles
Browse latest Browse all 1764

Trending Articles