Hướng dẫn debugging với PHPstorm

Hướng dẫn debugging với PHPstorm

It seems relatively easy (ie. zero configuration) to get PHPstorm and Xdebug up and running together, so I will presume you have that going. It often happens that you want a breakpoint in a frequently called function. Just putting one will make the system stop there every time. After a right click, Edit you can add conditions to it which help. Even better, you can add a breakpoint to somewhere else, remove the suspend checkbox from it and make the first breakpoint disabled until the second is hit. This allowed me for example to break in drupal_flush_all_caches only when fired from WebTestBase::resetAll.

Hướng dẫn debugging với PHPstorm

Another useful tip from dawehner (I had no idea!): PHP CLI works with xdebug just fine, you just need to run export XDEBUG_CONFIG="idekey=PHPSTORM"first.

Bạn thấy bài viết này như thế nào?: 
No votes yet
Ảnh của Khanh Hoang

Khanh Hoang - Kenn

Kenn is a user experience designer and front end developer who enjoys creating beautiful and usable web and mobile experiences.

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
Roadmap list để phát triển Drupal Commerce 2.x

Roadmap list cho sự phát triển Drupal Commerce 2.x

You have unlimited raw material to build whatever you can imagine, and if you screw up you can just knock it over (to the delight of your children) and start again.

TRUST RANK - Đánh giá mức độ uy tín của website

TRUST RANK - Đánh giá mức độ uy tín của website

Làm thế nào khi thương hiệu, website của chúng ta chưa có mức độ nổi tiếng, tên tuổi nhưng vẫn giúp khách hàng khi thăm website tin tưởng, yên tâm khi mua hàng và dịch vụ trên website?

5 Tips giúp bạn trở thành Gitt administer tại drupal.org

5 Tips giúp bạn trở thành Gitt administer tại drupal.org

Tips to become a git administer at drupal.org

Công ty diệt chuột T&C

 

Diet con trung