简体   繁体   English

komodo IDE->使用komodo + xdebug进行远程调试php:如何查看$ _SERVER变量?

[英]komodo IDE -> remote debug php using komodo+xdebug: how to watch the $_SERVER variable?

I've setup komodo IDE together with xdebug to do remote debugging PHP. 我已经与xdebug一起设置了komodo IDE,以进行PHP的远程调试。 Everything is working fine. 一切正常。 Now i want to watch some variables while debugging is in progress. 现在,我想在调试过程中观察一些变量。 I can watch any variables without problem but i couldn't watch any PHP SERVER variable, for example how to watch the $_SERVER['SERVER_NAME'] , If i use $_SERVER or SERVER or $SERVER , it will return 0. Anyone know how to do it ? 我可以毫无问题地监视任何变量,但不能监视任何PHP SERVER变量,例如如何监视$ _SERVER ['SERVER_NAME'],如果我使用$ _SERVER或SERVER或$ SERVER,它将返回0。任何人都知道怎么做 ?

Thanx 谢谢

Komodo has a specific tab for super globals. Komodo有一个用于超级全局变量的特定选项卡。 In the bottom left it has "Watch", "Locals" and "Superglobals". 左下角有“监视”,“本地”和“超级全局”。 For SERVER, GET, POST etc, you'd want the "Superglobals" tab to be activated. 对于SERVER,GET,POST等,您希望激活“ Superglobals”选项卡。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM