Re: [Development] QJSEngine debuging

2012-11-20 Thread Kevin Krammer
On Tuesday, 2012-11-20, Michal Dorner wrote: > qmlRegisterType("MyModule", 1, 0, "Test"); > > engine = new QQmlEngine(); > > > component = new QQmlComponent(engine, > QUrl::fromLocalFile("module.qml")); > > > if (!component->isLoading()) { I think you can just call component-

Re: [Development] QJSEngine debuging

2012-11-20 Thread Michal Dorner
2012/11/19 Koehne Kai > > Hi, > > Even if you're not using QML, you might look into using it's debugging > infrastructure. All you'll probably have to do is create a dummy QQmlEngine > at the start of your app: Since breakpoints, stepping are global for v8, > you should be able to debug any JS cod

Re: [Development] QJSEngine debuging

2012-11-19 Thread Kevin Krammer
ember 18, 2012 12:44 PM > > To: development@qt-project.org > > Subject: [Development] QJSEngine debuging > > Our plan is to switch project to qt5 and use QJSEngine (not qml because > > it's service, not GUI). > Even if you're not using QML, you might look into using i

Re: [Development] QJSEngine debuging

2012-11-19 Thread Koehne Kai
Subject: [Development] QJSEngine debuging > > Hi, > > i'm student at FIIT STU <http://www.fiit.stuba.sk/en.html?page_id=749> > and my team is working on qt based server application. > I realy like idea to make application extendable via JavaScript modules and > probabl

Re: [Development] QJSEngine debuging

2012-11-18 Thread Richard Moore
On 18 November 2012 11:44, Michal Dorner wrote: > I wonder if it's possible to get v8 handle from QJSEngine instance and > enable debuging using v8 api. > Goal is to provide debuging with greakpoints and steps using Eclipse plugin > or something like node-inspector in Node.js > > Could someone ple

[Development] QJSEngine debuging

2012-11-18 Thread Michal Dorner
Hi, i'm student at FIIT STU and my team is working on qt based server application. I realy like idea to make application extendable via JavaScript modules and probably implement some trivial core functionality in it too. Our plan is to switch project