mirror of
https://github.com/ZuneDev/ZuneUIXTools.git
synced 2026-07-27 13:11:59 -07:00
33 lines
893 B
C#
33 lines
893 B
C#
using OmniSharp.Extensions.DebugAdapter.Protocol.Requests;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using DapStackFrame = OmniSharp.Extensions.DebugAdapter.Protocol.Models.StackFrame;
|
|
|
|
namespace Microsoft.Iris.DebugAdapter.Server.Handlers;
|
|
|
|
internal class StackTraceHandler : StackTraceHandlerBase
|
|
{
|
|
public override async Task<StackTraceResponse> Handle(StackTraceArguments request, CancellationToken cancellationToken)
|
|
{
|
|
Debugger.Launch();
|
|
Debugger.Break();
|
|
|
|
List<DapStackFrame> stackFrames = [
|
|
new()
|
|
{
|
|
Source = new()
|
|
{
|
|
Path = "NowPlayingMusicBackground.uix"
|
|
}
|
|
}
|
|
];
|
|
|
|
return new StackTraceResponse
|
|
{
|
|
StackFrames = stackFrames
|
|
};
|
|
}
|
|
}
|