I had to setup a local environment for a Spring Boot application running in a Docker container. It truly helps us and with this way we could notice mistakes : Remote Debug Spring Boot App in a Docker Container using IntelliJ IDEA Home |Ībout Remote Debug Spring Boot App in a Docker Container using IntelliJ IDEA From now on, I am able to debug my variables on PHPStorm interface obviously. Right, I can start my Xdebug session by getting this url. I clicked the phone icon to start listening PHP Debug Connections. And Ide Key is same thing in the Dockerfile. My server is docker-server which I've created just before. On this section, we are going to create a configuration under to PHP Remote Debug. You have to define the Absolute path on the server as /var/Well, after this, you close this screen and click the Edit Configurations section on the left side. My host is localhost and my web server post is 8888. After that, follow this path Phpstorm > Preferences > PHP > Servers. For this, follow this path from the interface. Finally, let me show docker-compose.yml file.įrom now on, I could configure the Xdebug client. In addition to this, as you see, my idekey is and my remote_port is 9001. If you haven't got Mac OS, you're supposed to change xdebug.remote_host as your machine IP. Libxml2-dev freetype-dev libpng-dev libjpeg-turbo-dev g++ make autoconf \ & docker-php-source extract \ & pecl install xdebug redis \ & docker-php-ext-enable xdebug redis \ & docker-php-source delete \ & docker-php-ext-install pdo_mysql soap intl zip \ & echo "xdebug.remote_enable=on" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \ & echo "xdebug.remote_autostart=off" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \ & echo "xdebug.remote_port=9001" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \ & echo "xdebug.remote_handler=dbgp" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \ & echo "xdebug.remote_connect_back=0" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \ & echo "xdebug.idekey=" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \ & echo "xdebug.remote_host=" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \ & curl -sS | php -install-dir =/usr/local/bin -filename =composer \ & rm -rf /tmp/ * RUN apk update \ & apk add -no-cache git mysql-client curl libmcrypt libmcrypt-dev openssh-client icu-dev \ tags = "a=href,area=href,frame=src,input=src,form=,fields" zend. hash_bits_per_character = 5 url_rewriter. timestampformat = "%Y-%m-%d %H:%M:%S" ibase. default_soc sendmail_path = / usr / sbin / sendmail - t mail. enable_gc = On expose_php = Off max_execution_time = 30 max_input_time = 60 memory_limit = 256 M error_reporting = E_ALL & ~ E_NOTICE display_errors = On display_startup_errors = Off log_errors = On log_errors_max_len = 1024 ignore_repeated_errors = Off ignore_repeated_source = Off report_memleaks = On track_errors = Off html_errors = On error_log = error_l variables_order = "EGPCS" request_order = "GP" register_argc_argv = On auto_globals_jit = On post_max_size = 64 M auto_prepend_file = auto_append_file = default_mimetype = "text/html" default_charset = "UTF-8" include_path = ".:/opt/php72/lib/php" doc_root = user_dir = enable_dl = Off file_uploads = On upload_max_filesize = 64 M max_file_uploads = 20 allow_url_fopen = On allow_url_include = On default_socket_timeout cli_server. output_compression = Off implicit_flush = Off unserialize_callback_func = serialize_precision = 100 disable_functions = dl disable_classes = zend. Engine = On short_open_tag = On precision = 14 output_buffering = Off zlib.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |