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

docs: PhpStorm CLI debug error "Can't find a source position. Server with name 'SITE_NAME.ddev.site' doesn't exist." #5531

Merged
merged 4 commits into from Nov 14, 2023

Conversation

RuZniki
Copy link
Contributor

@RuZniki RuZniki commented Nov 12, 2023

The Issue

When trying to debug PhpUnit, and command-line PHP processes with PhpStorm I get error:

"Can't find a source position. Server with name 'SITE_NAME.ddev.site' doesn't exist."

I found that PHP | Servers - Name is important, not only Host.
My ddev project name is 'drupal'. And debuging starts to work only after I change server name to 'drupal.ddev.site'

This settings doesn't work for CLI debugging.
image

After change server name, working settings.
image

I had an issue with debug from CLI and PHPUnit
On PhpStorm PHP server name setting is important. I had an issue with debug to unders

How This PR Solves The Issue

Update documentation page "Step Debugging with Xdebug".

Related Issue Link(s)

php-perfect/ddev-intellij-plugin#227

Provide information about path mapping
@RuZniki RuZniki requested a review from a team as a code owner November 12, 2023 15:18
@rfay
Copy link
Member

rfay commented Nov 12, 2023

Thanks for this contribution. I'd rather see it solved in

We'll see what @nico-loeber says.

Mostly I try to avoid adding "every little thing" to the docs. Would Stack Overflow be a better place to put this?

Regardless, please change the title of this issue to have the error encountered, so people will find it.

@RuZniki RuZniki changed the title docs: provide infromation about mapping error during CLI debugging docs: CLI debug error "Can't find a source position. Server with name 'SITE_NAME.ddev.site' doesn't exist." Nov 13, 2023
@RuZniki RuZniki changed the title docs: CLI debug error "Can't find a source position. Server with name 'SITE_NAME.ddev.site' doesn't exist." docs: PhpStorm CLI debug error "Can't find a source position. Server with name 'SITE_NAME.ddev.site' doesn't exist." Nov 13, 2023
@RuZniki
Copy link
Contributor Author

RuZniki commented Nov 13, 2023

Randy, thanks for feedback, I updated issue description and title.

Copy link
Member

@rfay rfay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this may belong here OK, as long as you remember to remove it when the extension gets fixed :) Suggested minor verbiage change that you can just accept if you like it.

docs/content/users/debugging-profiling/step-debugging.md Outdated Show resolved Hide resolved
Update from rfay

Co-authored-by: Randy Fay <randy@randyfay.com>
@RuZniki
Copy link
Contributor Author

RuZniki commented Nov 13, 2023

Thanks for you suggestion. Accepted. I do my best to remove it as soon it would be fixed.

Copy link
Member

@rfay rfay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@rfay rfay merged commit 6360c75 into ddev:master Nov 14, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants