Debugging Shopware

I am looking for a good guide to debug in PHPStorm the Shopware Software. I want to run shopware till the breakpoint in the script, so i can get all the information there and can go on step by step.

 

But it works only with "Run" -> "Break at first Line in PHP Scripts"

0
4 comments
Avatar
Permanently deleted user

Hello,

Such behavior usually points to the path mappings issues.

Did you set the mappings at File | Settings | Languages & Frameworks | PHP | Servers?

Did you try to set the exact mappings for the files you are working with?

0
Avatar
Permanently deleted user

Yes I did. I hope I did it the right way. I tried all ways.

In my example on the windows computer the location ist for example

D:\project\website1

This is also set in Apache as DOCUMENT_ROOT

 

So I need no Mapping settings

0
Avatar
Permanently deleted user

Can you give me a second to check the settings through teamviewer in PHPStorm ? 

0

Hi there,

Please enable xdebug logging (may need to restart web server/php process so it picks up changes in php.ini), try to debug your code. Once done -- show that xdebug log file: https://xdebug.org/docs/all_settings#remote_log

At the same time -- please show screenshots of your config in PhpStorm (to see the paths that IDE uses).

Thing is: xdebug uses final/resolved paths while IDE uses them as is. So if you have any symlink/junction point etc anywhere in your path (where your code is) then xdebug would not be able to match those paths. For such cases the path mapping is required and xdebug log can show what the actual path xdebug sees.

1

Please sign in to leave a comment.