Skip to content
Discussion options

You must be logged in to vote

Fixed by changing the config to:

require('dap').configurations.php = {
      {
        type = 'php',
        request = 'launch',
        name = 'Debug current file',
        program = '${file}',
        cwd = '${fileDirname}',
        runtimeArgs = {
                  '-dzend_extension=/usr/lib/php/20240924/xdebug.so', -- Needed to "lazy" load xDebug
                  '-dxdebug.mode=debug',
                  '-dxdebug.start_with_request=yes',
                },
        xdebugSettings = {
          max_data = 0,
          show_hidden = 1,
          max_children = 100,
          max_depth = 3,
        },
      },
    }

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by metalinspired
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant