Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php.debug.startWithStopOnEntry #945

Open
nesar77 opened this issue Nov 23, 2023 · 7 comments
Open

php.debug.startWithStopOnEntry #945

nesar77 opened this issue Nov 23, 2023 · 7 comments

Comments

@nesar77
Copy link

nesar77 commented Nov 23, 2023

PHP version: 7.4.33 (cli)
Xdebug version: 3.1.2
VS Code extension version: 1.34..0

Your launch.json:

{
    // Usare IntelliSense per informazioni sui possibili attributi.
    // Al passaggio del mouse vengono visualizzate le descrizioni degli attributi esistenti.
    // Per altre informazioni, visitare: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Listen for Xdebug",
            "type": "php",
            "request": "launch",
            "port": 9000,
            "hostname": "0.0.0.0"
        }
    ]
}

Xdebug php.ini config:

[xdebug]
;zend_extension="/usr/lib/php/20190902/xdebug.so"
xdebug.mode=debug
xdebug.discover_client_host=1
xdebug.client_port=9000
xdebug.start_with_request=yes
xdebug.idekey=VSCODE
;xdebug.log = /var/log/xdebug.log

Using F5 command I'm not able to start the debugger because I'm getting the following error:
command 'php.debug.startWithStopEnrty" not found

@zobo
Copy link
Contributor

zobo commented Nov 23, 2023

Does it work if you click on the run button?

@nesar77
Copy link
Author

nesar77 commented Nov 23, 2023

Yes, but the debug starts immediately and not on request.

@zobo
Copy link
Contributor

zobo commented Nov 23, 2023

Thats probably the "play" button on the right side of the editor? How about the play button on the left, when you open the debug side menu. Sorry, can't give you a screenshot, I'm on the phone. https://code.visualstudio.com/docs/editor/debugging (left side)

@zobo
Copy link
Contributor

zobo commented Nov 23, 2023

Also, do you have any other PHP extensions installed?

@nesar77
Copy link
Author

nesar77 commented Nov 23, 2023

Using the toolbar on the left side I'm able to start the debug correcly.
I've installed the XDebug and Intelephense extensions.

@zobo
Copy link
Contributor

zobo commented Nov 23, 2023

Thanks. Will investigate.

@zobo
Copy link
Contributor

zobo commented Nov 23, 2023

Hm. What I did last version was that I renamed the command php.debug.startWithStopOnEntry to extension.php-debug.startWithStopOnEntry. In either case, that shouldnot be bound to F5. Try to open one of the "keyboard shortcuts" commands (ctrl+shift+p) and see if you can find the command php.debug.startWithStopOnEntry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants