Skip to content

how to use the php profiler with docker ? #800

@ctf0

Description

@ctf0

am trying to follow the post https://blog.devsense.com/2025/profile-laravel-in-visual-studio-code but i cant find any info regarding the usage of docker, not even in the main docs https://docs.devsense.com/vscode/profiling/

atm i have something like

// debug ~ works with the browser extension
{
    "name": "Listen for Xdebug",
    "type": "php",
    "request": "launch",
    "port": 9003,
    "pathMappings": {
        "/var/www/html": "${workspaceFolder}"
    }
},
// profile ~ not yet
{
    "name": "Listen for Profiling",
    "type": "php",
    "request": "launch",
    "port": 9003,
    "pathMappings": {
        "/var/www/html": "${workspaceFolder}"
    },
    "runtimeArgs": [
        "-S",
        "localhost:8888",
        "-t",
        "./public"
    ],
    "openProfile": true,
    "noDebug": true, // <-- disable debugging
    "profile": true, // <-- enable profiling
}

any help is appreciated.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions