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

Posts: 281
Registered: ‎05-31-2012
My Device: Playbook
My Carrier: o2
Accepted Solution

where can i see the console.log?

hi, i use console.log in my QML application to make some debugging.


the problem is, what i cant see any output.

i have set the build conf. to device-debug and i'm also running the debug


then i look in the console windows, and see nothing.

Plase "+Like" my post if it was helpful.
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: where can i see the console.log?

Please use the Board search feature at upper right. Looking for "console debug" or various similar searches will get you many threads with answers and options.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Posts: 669
Registered: ‎02-19-2011
My Device: BlackBerry PlayBook 32GB
My Carrier: Sprint

Re: where can i see the console.log?

I have no idea why RIM disabled the in-IDE console but from this page:




1. In the IDE, in the Target Navigator view, right-click the device target. Click Launch SSH Session.
2. In the terminal that appears, do one of the following:
     a. To view the current slogger2 logs, type slog2info.
     b. To view real-time output for the processes that are being debugged (for applications that are running in development mode), type slog2info -w.
     c. To view help information on slogger2, type slog2info -h.

You can also access the log files directly in the /tmp/slogger22 on the device and run these logs through slog2info at a later time.


It shows all logs, even console.log()  entries from Javascript.

Staff UI Prototyper (read: full-time hacker)

My BB10 apps: Screamager | Scientific RPN Calculator | The Last Weather App

Posts: 160
Registered: ‎01-27-2012
My Device: Playbook
My Carrier: Rogers

Re: where can i see the console.log?

Check this link for a nice simple alternative to slog2info - and then having to parse the file.



If you find my post helpful please "like" it and "accept as a solution"
Posts: 526
Registered: ‎05-17-2009
My Device: 9900
My Carrier: ATT

Re: where can i see the console.log?

they probably did it because writing to standard out is expensive vs whatever they mapped it to with slogger2, so for system performance they made it so all apps did this instead of worrying about developers leaving a lot of qDebug() code in the production codebases.
Like all of my posts