Skip to content

Going up/down in the stacktrace should not cycle through #735

@wookayin

Description

@wookayin

Debug adapter definition and debug configuration

Just a minimal configuration would be enough:

local dap = require('dap')
local dapui = require('dapui')

dapui.setup {}
require('dap-python').setup()

Debug adapter version

3d0d731 (0.3.0+)

Steps to Reproduce

vim.keymap.set('u', function() require "dap".up() end)
vim.keymap.set('d', function() require "dap".down() end)

Calling dap.up and dap.down (or via some keymaps like above) would move the stack frame up and down, but the problem is it cycles through when it pasts the topmost or bottommost frame.

Expected Result

As usual in normal, conventional debugers, it should not past the frame boundaries if it is already the topmost stackframe or the bottommost one (with some error/warning messages).

Actual Result

The stackframe cycles through.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions