We tried to use a Debug Adapter written for VSCode along with VS. We see that the brakpoint is hit but VS crashes when reading the response for stackTrace request. Below are the details.
P.S. The same response is succesfully parsed by VSCode.
Am I missing something? ANy setting that we need to do first?
1> [DebugAdapter] --> C (stackTrace-7): {"type":"request","command":"stackTrace","arguments":{"threadId":6758,"startFrame":0,"levels":1},"seq":7}
1> [DebugAdapter] <-- R (stackTrace-7) [105 ms]: {"type":"response","request_seq":7,"success":true,"command":"stackTrace","body":{"stackFrames":[{"column":13,"endColumn":29,"endLine":11,"id":0,"line":11,"moduleId":"478591e3-c030-4fb3-9f3d-792271a49de0","name":"NUITemplate1.Program.OnCreate()","source":{"name":"NUITemplate1.cs","path":"C:\Users\a.aswani\source\repos\NUITemplate1\NUITemplate1\NUITemplate1.cs"}}],"totalFrames":10},"seq":28}
1> [DebugAdapter] --> C (stackTrace-8): {"type":"request","command":"stackTrace","arguments":{"threadId":6758,"startFrame":0,"levels":1000},"seq":8}
1> [DebugAdapter] <-- R (stackTrace-8) [56 ms]: {"type":"response","request_seq":8,"success":true,"command":"stackTrace","body":{"stackFrames":[{"column":13,"endColumn":29,"endLine":11,"id":0,"line":11,"moduleId":"478591e3-c030-4fb3-9f3d-792271a49de0","name":"NUITemplate1.Program.OnCreate()","source":{"name":"NUITemplate1.cs","path":"C:\Users\a.aswani\source\repos\NUITemplate1\NUITemplate1\NUITemplate1.cs"}},{"column":0,"endColumn":0,"endLine":0,"id":1,"line":0,"moduleId":"","name":"[External Code]"},{"column":0,"endColumn":0,"endLine":0,"id":2,"line":0,"moduleId":"","name":"[External Code]"},{"column":0,"endColumn":0,"endLine":0,"id":3,"line":0,"moduleId":"","name":"[Native Frame]"},{"column":0,"endColumn":0,"endLine":0,"id":4,"line":0,"moduleId":"","name":"[Native Frame]"},{"column":0,"endColumn":0,"endLine":0,"id":5,"line":0,"moduleId":"","name":"[External Code]"},{"column":0,"endColumn":0,"endLine":0,"id":6,"line":0,"moduleId":"","name":"[External Code]"},{"column":0,"endColumn":0,"endLine":0,"id":7,"line":0,"moduleId":"","name":"[External Code]"},{"column":0,"endColumn":0,"endLine":0,"id":8,"line":0,"moduleId":"","name":"[External Code]"},{"column":13,"endColumn":27,"endLine":46,"id":9,"line":46,"moduleId":"478591e3-c030-4fb3-9f3d-792271a49de0","name":"NUITemplate1.Program.Main()","source":{"name":"NUITemplate1.cs","path":"C:\Users\a.aswani\source\repos\NUITemplate1\NUITemplate1\NUITemplate1.cs"}}],"totalFrames":10},"seq":29}
1> ERROR: InvalidOperationException: Unable to locate module with id ''!
1> ERROR: Unexpected error
AggregateException: One or more errors occurred.
System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) Microsoft.VisualStudio.Debugger.VSCodeDebuggerHost.Utilities.TaskExtensions.CancellableWaitCore[TResult](Task task, Func
1 getResultFunc, TResult onCancelResult, IDebuggedProcess process, WaitErrorHandlingMode errorMode)
Aggregate exception:
InvalidOperationException: Unable to locate module with id ''!
Inner Exception:
InvalidOperationException: Unable to locate module with id ''!
Microsoft.VisualStudio.Debugger.VSCodeDebuggerHost.Engine.Implementation.ModuleManager.GetModuleById(Object id)
Microsoft.VisualStudio.Debugger.VSCodeDebuggerHost.AD7.Implementation.AD7StackFrame.ConstructFrameInfo(Nullable1 showInHex, enum_FRAMEINFO_FLAGS dwFieldSpec) System.Linq.Enumerable.WhereSelectEnumerableIterator
2.MoveNext()
System.Linq.Buffer1..ctor(IEnumerable
1 source)
System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source) Microsoft.VisualStudio.Debugger.VSCodeDebuggerHost.Utilities.TaskExtensions.ContinueWhenAll[TResult](IEnumerable
1 antecedents, CancellationToken cancellationToken)
Microsoft.VisualStudio.Debugger.VSCodeDebuggerHost.AD7.Implementation.AD7Thread.<>c__DisplayClass6_0.<Microsoft.VisualStudio.Debugger.Interop.IDebugThread2.EnumFrameInfo>b__0(IReadOnlyCollection1 frames) Microsoft.VisualStudio.Debugger.VSCodeDebuggerHost.Utilities.TaskExtensions.<>c__DisplayClass8_0
2.b__2(TResult result)