简体   繁体   English

Chrome开发者工具-是否可以检查当前文件名?

[英]Chrome developer tools - is there a way to check current's file name?

I have a code of online shop on Prestashop, and I have for example content="Shop on PrestaShop" in meta-data of current page, but when I'm trying to find that String in project in Webstorm to localize which page file it is, I get nothing. 我在Prestashop上有一个在线商店的代码,例如在当前页面的元数据中有content =“在PrestaShop上的商店”,但是当我试图在Webstorm的项目中找到该String来本地化哪个页面文件时是,我什么也没得到。

So I guess it's some PHP magic working there. 因此,我猜想这是一些PHP魔术。 So now I have huge problem with finding proper file in order to change that String. 因此,现在我在查找正确的文件以更改该字符串方面遇到了很大的问题。 Is it possible to check a filename and it's extension via Google developer tools? 是否可以通过Google开发人员工具检查文件名及其扩展名? I'm starting site from server, not localhost. 我从服务器而不是本地主机开始站点。

You can only find the files that are delivered to client's machine in chrome developers tools by visiting: 您只能通过以下方式在chrome开发人员工具中找到传递到客户端计算机的文件:

Inspect > Sources

The server side files can be visible only if you can see them in URL. 只有在URL中可以看到服务器端文件时,它们才可见。 If the path is re-written using something like .htaccess in apache, then there's really nothing that you can do to find out the file. 如果使用apache中的.htaccess类的内容重写路径,那么实际上您无能为力,无法找到文件。

These type of files are meant to be present only to hide the actual file path. 这些类型的文件仅用于隐藏实际的文件路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM