Phpstorm+xdebug mobile App Debugging

Source: Internet
Author: User

1. Installation process search on the Internet is all, omitted here.

2. Because debug debugging needs to determine the xdebug_session in the cookie, then go to Debug. Because the app interface request can not be transmitted, and even if the delivery is also very troublesome, but also to let the app to change, very unrealistic.

3. To search the internet for a long time, did not search, so I find a way to do.

4. Because of their own local is nginx, so I can access the time, on the nginx above will xdebug_session this setting. Every time in the future no matter what request, with no xdebug_session, can be debugged.

server {
Listen 8080;
server_name localhost;
Root/users/sekibuntora/code/phpcode/tp5/wechat-mall/public; #这里改成你自己的目录
Index index.php index.html;
#charset Koi8-r;
Add_header Set-cookie ' xdebug_session=14571 ';

...

5. Done

Note: Xdebug_session values here, you can use the values in browser debugging.

Phpstorm+xdebug mobile App Debugging

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.