有人设法在 zend studio 中进行交叉远程调试吗?

发布于 2024-09-26 18:45:12 字数 159 浏览 1 评论 0原文

我有两个项目 AB

我的调试从访问A的url开始,并且断点起作用。并且A需要卷曲B,我怎样才能让它停在那里?

I have two projects A and B .

My debug starts by accessing a url of A,and breakpoint works.And A need to curl B,how can I make it stop there?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

深海夜未眠 2024-10-03 18:45:12

我不知道调试器如何跟踪另一个站点的curl 请求(即使在同一服务器上)。根据我的经验,调试会话在启动它的请求返回时结束。因此,再举一个例子,如果代码重定向到同一站点上的另一个 url,调试器会在重定向处停止;它不会接收重定向的请求。

鉴于此,我认为您需要捕获curl提交给B的任何内容,并从浏览器提交相同的请求。然后您应该能够调试与 B 的交互。但基本上调试是关于本地计算机和对服务器的特定请求之间的关系。因此,您可以调试对 A 的请求,或对 B 的请求,但一次只能调试一个。

I don't see how the debugger would follow a curl request across to another site (even if on the same server). In my experience, the debugging session ends when the request that started it returns. So, as another example, if the code redirects to another url on the same site, the debugger stops at the redirect; it doesn't pick up the redirected request.

Given that, I'm thinking you need to capture whatever curl's submitting to B, and submit the same request from your browser. Then you should be able to debug the interaction with B. But basically debugging is about a relationship between your local machine and a specific request to a server. So you can debug a request to A, or a request to B, but only one at a time.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文