Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3
How to make XDebug work with a Devilbox and communicate with PhpStorm through Postman ? Check this tutoriel, maybe it helps
License
marcandreappel/xdebug-devilbox-phpstorm-postman
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Tested on:
- openSUSE 15.1 Leap
- Fedora 30
- Ubuntu 18.04.3 LTS
- Pop!_OS 19.10 (might apply to most recent Ubuntu derivates)
- Windows 10 Pro
Check before setup:
- Accept in the firewall settings the port 9000 TCP
Follow the steps in thesetup tutorial (optional).
Make sure to followthe Docker setup step in the setup tutorial.
(…for a multisite setup read this part of theDevilbox documentation…)
cd /_devilbox_install_dir_/cfg/php-ini-X.X/cp devilbox-php.ini-xdebug xdebug.ininano xdebug.iniChange these settings:
xdebug.default_enable = 1xdebug.profiler_enable = 1xdebug.remote_enable = 1xdebug.remote_autostart = 0xdebug.remote_handler = dbgpxdebug.remote_port = 9000xdebug.remote_connect_back = 1xdebug.idekey = PHPSTORMxdebug.remote_log = /var/log/php/xdebug.log
See theexample .ini file.
Save and restart DevilBox (or use thehandy startup script):
cd /_devilbox_install_dir_docker-compose stopdocker-compose rm -fdocker-compose up -d… or when not everything is necessary:
docker-compose up httpd php mysql -d
If you get errors, checktroubleshooting DNS related startup errors.
Settings /Languages & Frameworks /PHP
- Set CLI Interpreter by clicking on…
- Add a new interpreter by clicking on+ then chooseFrom Docker, Vagr…
- Tick Docker and add the Docker Server and then choose underImage name :devilbox/php-fpm:X.X-work…
Settings /Languages & Frameworks /PHP /Debug
Xdebug Debug port: 9000 ☑️ Can accept external connections ☑️ Force break at first line when no path mapping specified ☑️ Force break at first line when a script is outside the projectSettings /Languages & Frameworks /PHP /Debug /DBGp Proxy
IDE key: PHPSTORMHost: 0.0.0.0Port: 9000Settings /Languages & Frameworks /PHP /Servers
- Add a new server+
- Set the Name of the server
- Set values ofHost tolocalhost :Port to80
- ☑️ Use path mappings (…)
| File/Directory | Absolute path on the server |
|---|---|
| /home/user/devel/htdocs | /shared/httpd/devel/htdocs |
UnderQuery Params set the key:XDEBUG_SESSION_START and the valuePHPSTORMClick on the linkCookies (beneath theSend button) and add a new cookie for the corresponding domain:
XDEBUG_SESSION=PHPSTORM; path=/; domain=.yourlocaldomain.loc;About
How to make XDebug work with a Devilbox and communicate with PhpStorm through Postman ? Check this tutoriel, maybe it helps
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.