![]() ![]() Usually, at work, when I want to debug stuff, I add xdebugbreak() somewhere near the offending code line, turn on 'Start listening for PHP Debug Connections', and then it would stop at. I want to use Xdebug at home using XAMPP, but I'm not sure how to set it up. ago How to make duplicate container with xdebug (because xbebug is slows php) and debug code from this container. At work, we use dockers to run our servers, and we work with PhpStorm and Xdebug. MARK YOUR POST AS SOLVED If your post has been solved, mark it as so by clicking Flair -> Solved.įor inline code, use `backticks` to look like this.įor a moderate amount of code, put it on separate lines, and prepend each line with four spaces, like this: įor a lot of code, use PasteBin or something similar. PhpStorm, Docker and Xdebug 3 on PHP 8.1 in 2022: How to debug all the things (fpm, cli, workers) pascallandau 31 5 5 comments Best Add a Comment yuradee 1 yr. Please become familiar with these guidelines as we, as moderators, will use them to remove content that we deem to violate these guidelines. Self-promotion and/or linkdropping rules Our community adheres to the Reddit Self-Promotion Guidelines. No malicious/illegal software Don't ask for help with phishing software, for example. Don't take the provided answers away from them! 6. Don't delete an answered post People may be searching to solve a similar problem in the future. Use a meaningful title Titles like: "PHP Help", "Help please", "Beginner question", or "I need some help with resolving this issue" are not good and not meaningful. Actively participate when you make a post by answering questions and sharing solutions. ![]() Participate Posts that are only intended to get others to solve your problem add nothing to the community. If you believe someone is wrong, kindly inform them why you think so. Navigate to Preferences -> Languages and Frameworks -> PHP and click the. Enable the Xdebug option: 'Can accept external connections'. To solve the issue of needing to enable Force break at the first line when a script is outside the project can be solved by configuring PHPStorm to talk to the PHP Interpreter that is in DrupalVM. When supplying code, preferably use PasteBin or similar. Use the PhpStorm bookmarklets generator to activate Xdebug from the browser side. Help us help you! Provide details about your question and be as specific as possible. If someone answers your question, please mark your post as SOLVED.ġ. Review our github to see if your question already has a great answer. Post specific problems or questions you have about PHP or your code. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |