We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4377a05 commit fe15b35Copy full SHA for fe15b35
lua/dap/ui/widgets.lua
@@ -228,7 +228,17 @@ M.frames = {
228
layer.render({'Not stopped at any breakpoint. No frames available'})
229
return
230
end
231
- local frames = (session.threads[session.stopped_thread_id] or {}).frames or {}
+ local thread = session.threads[session.stopped_thread_id]
232
+ if not thread then
233
+ local msg = string.format("Stopped thread (%d) not found. Can't display frames", session.stopped_thread_id)
234
+ layer.render({msg})
235
+ return
236
+ end
237
+ local frames = thread.frames
238
+ if not frames then
239
+ layer.render({"Stopped thread has no frames"})
240
241
242
local context = {}
243
context.actions = {
244
{
0 commit comments