欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

有哪位大哥在 IntelliJ idea 中用过 openshift 么,下怎么远程调试,谢谢

程序员文章站 2022-05-23 20:27:00
...
在 idea 中用 openshift 的 PHP 5.4 with Zend Server 6.1 , Settings 中 Build,Execution,Deployment->Clouds 处已添加 openshift 账号,添加 ssh public key 成功, idea 中用 Check out from Version Control 的 git 那 Clone 成功,我在 Run 里的 Edit Configurations 里添加了 Openshift Deployment ,添加了 Server 、 Deployment , Debug Port 不知道填啥,现在能够编辑,能够 Commit ,能够 Run ,直接打开网址,都成功

phpinfo 中显示是安装了 zend debugger 的

我想要在 idea 中远程 Debug , Run 里选择了 Start Listening for PHP Debug Connections ,勾了 Break at first line in PHP Script , Edit Configurations 的 Debug Port 填的 10137 ,然后点击 Debug ,部署成功,但是有这个 Cannot retrieve debug connection: Debug port forwarding not found ,调试端口转发未找到,打开 putty 开转发 R10137 localhost:10137 ,测试是 Cannot retrieve debug connection: com.openshift.client.OpenShiftSSHOperationException: Failed to list forwardable ports for application "codeigniter"

谷歌里找到了 Jboss 的方法,但是和 PHP 5.4 with Zend Server 6.1 完全不同, idea 官方没有这方面资料, openshift 官方也没有这方面资料


解决方案

用eclipse好一些