Settings
File → Settings
Font |
Editor → Font
|
Themes |
Appearence & Behaviour → Appearence → UI Options → Theme
|
Commandes
Formatter le code |
Code → Reformat Code |
Ctrl + Alt + L
|
Log
|
~/.PhpStorm2017.3/system/log |
- Installer le plugin Laravel: File → Settings → Plugins → Browse Repositories → Laravel Plugin
- Configurer le plugin Laravel: File → Settings → Languages & Framework → PHP → Laravel
- Tools → Deployment → Configuration
- +
- Type: In place
- Web server root url: http://mylocalhost
- Mapping
- Local path: /usr/share/nginx/myproject
- Web path: /
xdebug
|
# installer xdebug
pacman -S xdebug
|
/etc/php/conf.d/xdebug.ini
|
zend_extension=xdebug.so
xdebug.remote_enable=on
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
; every time you reload the page xDebug tries to debug the script
; remplace l'extension Xdebug Helper for Firefox
xdebug.remote_autostart=on
|
Cliquer sur le petit insecte à droite de la barre d'adresse pour le passer au vert.
Start Listening for PHP Debug Connections
PhpStorm → Run → Start Listening for PHP Debug Connections
Run → Web Server Debug Validation
|
Le dossier racine doit être accessible en écriture pour l'utilisateur courant. _intellij_phpdebug_validator.php |
Run/Debug Configuration
- Run → Edit Configurations
- + → PHP Web Page
- Server → ... → Use path mapping
Doesn't hit breakpoints except those in index.php
|
Utiliser xdebug_break(); au lieu des breakpoints fonctionne. |
PHP Settings
- File → Settings → Languages & Frameworks → PHP → CLI Interpreter → ...
- +
- PHP executable: C:\wamp64\bin\php\php7.1.9\php.exe
Git
- File → Settings → Version Control
- View → Tool Windows → Version Control
Erreurs
|
sysctl fs.inotify.max_user_watches=524288
|
/usr/lib/sysctl.d/50-default.conf
|
# increase watch limit from 8192
fs.inotify.max_user_watches = 524288
|