如何忽略要求

时间:2018-09-19 12:17:03

标签: phpstorm xdebug

我最近开始为PHP使用调试器,并且运行良好,但是有一个问题。当我从Chrome打开页面时,我收到来自PHP Storm的通知“来自XDebug的传入连接” ...,我可以接受或忽略它,没关系。然后我可以调试。这就是首页的连接,即index.php

问题是我要在页面上打开某些图片,并包含一些CSS或JS文件。对于所有这些文件,Chrome浏览器都在发出其他请求,对于所有这些文件,我还收到消息“来自XDebug的传入连接”。因此,对于每个有效请求,我都必须单击“忽略”大约20倍以上...以忽略第一个文件之后的每个其他文件,其中包含页面源代码。

我尝试在foreach ($properties as $key => $property) { $data['items'][$key] = [ 'id' => $property->id, 'street' => $property->street, 'zipcode' => $property->zipcode, 'city' => $property->city->name, 'type' => $property->type->name, 'interior' => $property->interior->type, 'bedrooms' => $property->bedrooms, 'year' => $property->year, 'surface' => $property->surface, 'available' => $property->available, 'rent' => $property->rent, 'service_costs' => $property->service_costs, 'deposit' => $property->deposit, 'text_nl' => $property->leader_text, 'office' => $property->office->name, ]; foreach ($property->property_images as $image) { $data['items'][$key]['images'][] = [ 'id' => $image->id, ]; } } 下的“跳过的路径”中向要忽略的目录添加路径,但是它不起作用。

可以以某种方式设置它吗?也许有些明显的忽略-我无法调试图像文件。

0 个答案:

没有答案