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
sawrubh
Posts: 34
Registered: ‎07-05-2012
My Device: Dev Alpha

Problem debugging JavaScript in QML

I'm working with Cascades/QML/JavaScript . I need to debug the JavaScript inside QML, but I am searching for some alternative method to using |slog2info -w| command combined with a ssh session to the device, I want some method where I can place breakpoints and then step through them *inside* Momentics IDE. As a workaround I'm having to use an empty label and then populate it with my debug message.

 

The problem I feel with the |slog2info -w| method is that the output that is given on the ssh shell is mixed in with a lot of other information that we don't need like system messages, that something was loaded when you click the button, so the actual debug message that you wrote to the console is lost among these other messages from the system.

Developer
Zmey
Posts: 1,512
Registered: ‎12-18-2012
My Device: PlayBook, Z10, DAC

Re: Problem debugging JavaScript in QML

Use grep to eliminate spam:

 

slog2info -w |grep qt-msg

 


Andrey Fidrya, @zmeyc on twitter