If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

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
testinz
Posts: 175
Registered: ‎09-03-2012
My Device: Blackberry 10

Headless doesn't output debug log

I am wondering if anyone able to output log in the headless app?

 

E.g. qDebug() << "Blah"

 

 

Please use plain text.
Developer
RikScheffer
Posts: 25
Registered: ‎07-21-2013
My Device: BB Z10 LE, BB DAC, BB PlayBook
My Carrier: Vodafone NL

Re: Headless doesn't output debug log

it is working for me. On the first computer I tried it with it didn't work. When I switched to an other computer I suddenly started to work. Maybe you could try to fiddle around with some settings?

---
http://www.heris.nl OR Check out my apps in appworld:
http://appworld.blackberry.com/webstore/vendor/22561/
Please use plain text.
Developer
smiley
Posts: 1,425
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Re: Headless doesn't output debug log

I had similar problems.  Sometimes it works and the other times it doesn't.

 

also try fprintf(stderr, "msg"); 

 

that used to work and it doesn't.  Have no clue why.

 

One project would work with qDebug() and others don't.

 

The best is just dump your debug in a file and then view it.

Please use plain text.
Developer
testinz
Posts: 175
Registered: ‎09-03-2012
My Device: Blackberry 10

Re: Headless doesn't output debug log

The weirdest thing is that I have 2 projects in the same workspace.

One works, the other doesn't.

I compare main.cpp in both files and they have exactly the same code for comparison.

One thing I notice is that there are many slog2info processes target navigator .
Please use plain text.