The Artima Developer Community
Sponsored Link

Web Buzz Forum
Enabling the devtools inspector when using Oxide in an Ubuntu SDK QML app

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Stuart Langridge

Posts: 2006
Nickname: aquarius
Registered: Sep, 2003

Stuart Langridge is a web, JavaScript, and Python hacker, and sometimes all three at once.
Enabling the devtools inspector when using Oxide in an Ubuntu SDK QML app Posted: Dec 30, 2014 7:41 AM
Reply to this message Reply

This post originated from an RSS feed registered with Web Buzz by Stuart Langridge.
Original Post: Enabling the devtools inspector when using Oxide in an Ubuntu SDK QML app
Feed Title: as days pass by
Feed URL: http://feeds.feedburner.com/kryogenix
Feed Description: scratched tallies on the prison wall
Latest Web Buzz Posts
Latest Web Buzz Posts by Stuart Langridge
Latest Posts From as days pass by

Advertisement

A tiny post for something I’ve just worked out. If you’re using Oxide, the Ubuntu web rendering engine (based on Chrome’s Blink) in an Ubuntu SDK QML app, it’d be useful to have access to the devtools inspector so you can debug it. Well, you can, although this doesn’t seem to be documented anywhere. Adnane “daker” Belmadiaf wrote a useful post describing how to use Oxide in your Ubuntu QML application but unaccountably didn’t explain how to turn on the dev tools1 so this is how to do it.

Give your WebView a WebContext and set its devtoolsEnabled and devtoolsPort properties. That’s it.

import com.canonical.Oxide 1.0
WebView {

    ...

    context: WebContext {
        devtoolsEnabled: true
        devtoolsPort: 9232
    }
}
  1. possibly because you couldn’t when he wrote the post :)

Read: Enabling the devtools inspector when using Oxide in an Ubuntu SDK QML app

Topic: Ubuntu Component Store, redux 2 Previous Topic   Next Topic Topic: Advent Calendars for 2014

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use