Skip to content

Commit 055be38

Browse files
fix: request thread stack trace if client hasn't reported it (#395)
Request thread stack trace in case Debug Adapter hasn't reported it. This makes it possible to see stack traces for every thread when debugging multi-threaded debugee. Fixes regression caused by: a62e86b Closes issue: #387
1 parent 3e61767 commit 055be38

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/dapui/components/frames.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ return function(client, send_ready)
2525
end
2626

2727
local frames = threads[thread_id].frames
28+
if not frames then
29+
local success, response = pcall(client.request.stackTrace, { threadId = thread_id })
30+
frames = success and response.stackFrames
31+
end
2832
if not frames then
2933
return
3034
end

0 commit comments

Comments
 (0)