dongyun4010 2016-03-17 15:56
浏览 77
已采纳

从VB.NET应用程序调用Netbeans PHP调试

I have a Netbeans setup for a PHP API, with debugging (all works OK), and configured to debug calls with standard browser Firefox. This is all fine.

We have a VB.NET application which makes calls to this (development) API from the same machine: is there any way I can configure Netbeans to capture a request made from this application, in the same way it captures requests made direct from the browser?

The PHP application sits on a WAMP server stack.

This would aid debugging the VB.NET application hugely.

  • 写回答

1条回答 默认 最新

  • dongzhang1987 2016-03-30 01:16
    关注

    Yes, there is a way and it's pretty simple.

    Just set the XDEBUG_SESSION_START GET or POST variable to the value of your idekey configuration variable. So it may look like this (in the case of GET variable):

    http://example.com?XDEBUG_SESSION_START=idekey
    

    Or you can also send a cookie together with the request with the value XDEBUG_SESSION=idekey, which is, in fact, what's done automatically when you use the previous way of GET/POST variable.

    Check the Xdebug documentation for details.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器