官术网_书友最值得收藏!

Enabling the developer tools

In Settings | Dashboard, at the bottom right, you can find the Activate the developer mode link. Clicking on it enables the Developer mode features for this browser window.

For Odoo 9.0 and before, the Developer mode is activated in the About dialog window, available from the User menu, at the top-right corner of the web client. 

We also have available an Activate the developer mode (with assets) option. What it does is to prevent web client asset minification. It is useful to debug the web client itself, at the expense of making the navigation a little slower.

For faster load times, the web client minifies the Javascript and CSS assets into compact files. Unfortunately, that makes web client debugging nearly impossible. The Activate the developer mode (with assets) option prevents this minification and loads the web assets in individual, non-minified files.

You can enable the Developer mode without having to leave your current screen to open settings. Just edit the current URL to insert ?debug, or  ?debug=assets, just after the /web part.
For example, http://myserver/web#home would be changed to http://myserver/web?debug#home.
Although there is no link to enable it, the frontend framework also supports the debug flag. To disable asset minification in a frontend web page, add ?debug=assets to the corresponding URL. Take note that the option will probably not persist when navigating through links to other frontend pages.

Once the Developer mode is enabled, we will see two additional menus available:

  • The Debug menu, the bug icon at the right-hand side of the top menu bar, just before the username and avatar
  • The Technical menu item, in the Settings app:
The Developer mode also enables additional information on form fields: when pausing the mouse pointer over a field, a tooltip will display technical information on it.

We will be explaining and making use of these Developer mode features in the next sections of this chapter.

主站蜘蛛池模板: 商水县| 汽车| 元江| 当阳市| 芦山县| 灵川县| 黔西县| 梓潼县| 磐安县| 稷山县| 沙湾县| 富民县| 浠水县| 金门县| 乌拉特中旗| 聊城市| 康保县| 兴国县| 南溪县| 安新县| 乐安县| 陇川县| 航空| 泸溪县| 正定县| 兖州市| 汶上县| 龙州县| 台北市| 无为县| 正阳县| 会东县| 丁青县| 铁岭市| 浦城县| 安新县| 收藏| 尉犁县| 称多县| 紫阳县| 布拖县|