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

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.

主站蜘蛛池模板: 咸阳市| 宁乡县| 鄂托克前旗| 云浮市| 明溪县| 泰州市| 紫云| 龙岩市| 仲巴县| 兴化市| 南昌县| 澄迈县| 平塘县| 南溪县| 桓仁| 南陵县| 聊城市| 井研县| 西安市| 喀喇| 彩票| 龙井市| 永和县| 万年县| 赤壁市| 永顺县| 平果县| 贞丰县| 祥云县| 荥经县| 迭部县| 方山县| 寻甸| 仲巴县| 赤水市| 渝中区| 天祝| 清丰县| 屏南县| 偏关县| 广平县|