Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Breakpoints not hit when debugging IronPython code. #492

Open
@mrward

Description

@mrward

Whilst trying to update the IronPython addin for SharpDevelop 5 I noticed that breakpoints in IronPython code do not get hit by the debugger. They work in SharpDevelop 4.4

Since the IronPython addin is not available I created a C# console app that runs ipy.exe as an external program with the same parameters used when debugging IronPython applications with the IronPython addin. When this console application is run with the debugger it has a different problem where the debugger throws an unhandled exception:

Exception thrown:
System.InvalidOperationException: Could not find class for token 33554434
     at Debugger.TypeSystemExtensions.Import(ICompilation compilation, ICorDebugFunction corFunction) in src\AddIns\Debugger\Debugger.Core\TypeSystemExtensions.cs:line 538
     at Debugger.TypeSystemExtensions.Import(ICompilation compilation, ICorDebugFunction corFunction, List`1 typeArgs) in src\AddIns\Debugger\Debugger.Core\TypeSystemExtensions.cs:line 515
     at Debugger.StackFrame..ctor(Thread thread, ICorDebugILFrame corILFrame, UInt32 chainIndex, UInt32 frameIndex) in src\AddIns\Debugger\Debugger.Core\StackFrame.cs:line 86
     at Debugger.Thread.<get_Callstack>d__0.MoveNext() in src\AddIns\Debugger\Debugger.Core\Thread.cs:line 275
     at Debugger.Thread.get_MostRecentStackFrame() in src\AddIns\Debugger\Debugger.Core\Thread.cs:line 336
     at ICSharpCode.SharpDevelop.Services.WindowsDebugger.debuggedProcess_DebuggingPaused(Object sender, DebuggerPausedEventArgs e) in src\AddIns\Debugger\Debugger.AddIn\Service\WindowsDebugger.cs:line 474
     at Debugger.Process.OnPaused(DebuggerPausedEventArgs e) in src\AddIns\Debugger\Debugger.Core\Process.cs:line 285
     at Debugger.ManagedCallback.<>c__DisplayClass1.<ExitCallback>b__0() in src\AddIns\Debugger\Debugger.Core\ManagedCallback.cs:line 128
     at Debugger.MTA2STA.<>c__DisplayClass4.<EnqueueCall>b__1() in src\AddIns\Debugger\Debugger.Core\Interop\MTA2STA.cs:line 48
     at Debugger.MTA2STA.PerformCall() in src\AddIns\Debugger\Debugger.Core\Interop\MTA2STA.cs:line 98
     at Debugger.MTA2STA.PerformAllCalls() in src\AddIns\Debugger\Debugger.Core\Interop\MTA2STA.cs:line 75
     at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
     at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
     at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
     at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
     at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions