Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
maminde
Posts: 73
Registered: ‎05-03-2011
My Device: 9550
Accepted Solution

QML no compile error, but runtime error, how to debug?

QML code without compile error, but will not show out, debug in C++ code show that qml->hasErrors() has set, but the I can  not find which line cause error. any ideas? I search for QML debug, but it seems only break in javascript, not in create procedure.

Author of pairs and Gradient
Developer
BBSJdev
Posts: 6,116
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

Re: QML no compile error, but runtime error, how to debug?

In momentics you need to open a 'QNX System Information Perspective' [Window->Open Perspective]

Right-click on the target and select 'Launch SSH session'.

Within that SSH session, after connection, type in ' slog2info -w | grep '9000' '

 

Then look for a message about the QML problem.

 


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Developer
maminde
Posts: 73
Registered: ‎05-03-2011
My Device: 9550

Re: QML no compile error, but runtime error, how to debug?

Thank you for reply, I can get debug info in console now, but to my surpprise. when I delete many .preview..qml  temp file in asset fold and restart my simulator, the app show screen define by QML, everything seems smooth, I don't know why, it's a bug?

Author of pairs and Gradient
Developer
BBSJdev
Posts: 6,116
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

Re: QML no compile error, but runtime error, how to debug?

[ Edited ]

I don't think this would have been the cause these files are just used to preview QML in Momentics and do not affect the build.

 

I would look for another cause if the problem comes back.


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.