bitpressio / docker-for-php-developers-errata

Reported errata for https://bitpress.io/docker-for-php-developers/
13 stars 0 forks source link

select "PHP Web Application" in PHP Storm does not exist #7

Closed brendanlawton closed 4 years ago

brendanlawton commented 6 years ago

Hi,

Chapter 4: Development Tools, page 49:

On the following screen, click the plus (+) button in the top left and select "PHP Web Application" to create a run configuration.

I'm running PHPStorm 2017.3, build 173-3727-138

PHP Web Application is not an available option when adding a new configuration. The available PHP options are:

*NB There are also Docker options. Would these also be useful options?

paulredmond commented 6 years ago

PHP Remote Debug is what you want, I'm working on updating based on the latest PhpStorm. I'll try to help here as well, let me know if you get stuck.

paulredmond commented 6 years ago

@brendanlawton be sure to check out the Chapter 4 errata, it has a few changes that are yet to be updated in the book. Specifically, xdebug.remote_connect_back doesn't work anymore (it probably works on Linux) and the errata link shows you the updated settings. XDebug is always a bit complicated to set up:

https://github.com/bitpressio/docker-for-php-developers-errata/blob/master/errata.md#chapter-4-development-tools

brendanlawton commented 6 years ago

Thanks @paulredmond 👍

paulredmond commented 6 years ago

Reopening until the updates are published in the book.

shaneparsons commented 4 years ago

@paulredmond Additionally, do you think you'd be able to add instructions for VS Code? While the setup is similar to PHP Storm, there are some differences which stopped me from getting the majority of this chapter to work. It could very well be due to the fact that I haven't used xdebug before, but it can't hurt to clarify the steps given the popularity of the editor.

Let me know if you'd rather me create a new issue for this.

paulredmond commented 4 years ago

@shaneparsons thanks for the feedback! If you can please create another issue and detail out the issues you were having that would be greatly appreciated!

paulredmond commented 4 years ago

The latest QA version of the book has the latest PHPStorm instructions. Until the QA version is published you can reference the errata here to get help with newer versions of PHPStorm - https://github.com/bitpressio/docker-for-php-developers-errata/blob/master/errata.md#chapter-4-development-tools