簡體   English   中英

如何為magento后端啟用探查器

[英]how to enable profiler for magento backend

我想將magento profiler用於管理區域。 magento admin中是否有任何選項可以做到這一點,或者有任何其他mysql查詢可以做到這一點?

我正在使用magento 1.8

發現該解決方案我按照mysql查詢執行以下操作:

select * from core_config_data where path like '%template_hints%' and scope like '%default%';

如果您在查詢后的上一個查詢中未獲得任何記錄,則此查詢將輸出2行,其中那里的值屬性設置為0到1

INSERT INTO core_config_data (scope, scope_id, path, value) VALUES ('default', 0,'dev/debug/template_hints', 1),('default', 0, 'dev/debug/template_hints_blocks', 1);

禁用它再次將值更改為0

Magento Profiler和模板提示是兩件事。

要啟用Profiler,您需要取消注釋Varien_Profiler::enable(); index.php找到一行,並在System > Configuration > Developer > Debug設置配置,注意當前配置范圍。

要在管理員中啟用模板路徑提示,請使用以下命令:

insert into core_config_data (scope, scope_id, path, value) 
values ('stores', 0, 'dev/debug/template_hints', 1)
on duplicate key update value = 1 &~ value;

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM