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.

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

报告相同问题?