- Open up launch.json - My favorite way is via
Cmd + Shift + P
for command pallette, type "launch.json", and there it is!
- Set in the
xdebugSettings
key for the php Xdebug settings - Generally we should be able to port over settings in XDebug (Link), e.g.:
{
// XDebug Launch Configuration settings
"launch": {
"version": "0.2.0",
"configurations": [
// Listener mode (recommended for most cases)
// Can be used to debug both: web and cli PHP sessions.
{
"name": "XDebug (listener)",
"type": "php",
"request": "launch",
"port": 9000,
"xdebugSettings": {
"max_data": 1500, //set a proper number.
"max_children": 25000,
}
},
... etc.