Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to make XDebug work with a Devilbox and communicate with PhpStorm through Postman ? Check this tutoriel, maybe it helps

License

NotificationsYou must be signed in to change notification settings

marcandreappel/xdebug-devilbox-phpstorm-postman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Host OS

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).

Docker

Make sure to followthe Docker setup step in the setup tutorial.

Devilbox

(…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.ini

Change 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.

PhpStorm

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 project

Settings /Languages & Frameworks /PHP /Debug /DBGp Proxy

IDE key: PHPSTORMHost:    0.0.0.0Port:    9000

Settings /Languages & Frameworks /PHP /Servers

  • Add a new server+
  • Set the Name of the server
  • Set values ofHost tolocalhost :Port to80
  • ☑️ Use path mappings (…)
File/DirectoryAbsolute path on the server
/home/user/devel/htdocs/shared/httpd/devel/htdocs

Postman

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2026 Movatter.jp