How can i get the PHP magic constant __FILE__ work with Eclipse and PDT

后端 未结 5 1015
刺人心
刺人心 2021-02-20 04:23

Lately when i was debugging some PHP file with XDebug (under Eclipse on Ubuntu) i came across a strange behaviour:

print(__FILE__);

resulted in

5条回答
  •  星月不相逢
    2021-02-20 05:04

    Create a breakpoint on line print(__FILE__); and analyse which variables are available to you.

提交回复
热议问题