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

New Contributor
Posts: 6
Registered: ‎02-01-2012
My Device: Playbook
My Carrier: TMobile
Accepted Solution

stderr on simulator

[ Edited ]


Where can I find logs printed to stderr while running app on simulator?

The Console tab in QNX Momentics is empty.

Posts: 25
Registered: ‎01-30-2012
My Device: Bold 9900
My Carrier: Rogers

Re: stderr on simulator

[ Edited ]

Are you using something similar to this?


    fprintf ( stderr, "something to stderr" );


Or using C++ cerr? What version of NDK are you using? I just tried it on NDK 2.0.0 beta 3 and looks fine, both stdout and stderr are written on the console (although I expect the stderr to be red; I'll investigate that).


Still, you should be able to see the output logs at /accounts/1000/appdata/<your app id>/logs inside the target filesystem.


You can easily access that file via SSH connection to your device (at QNX System Information perspective, right-clicking your target and selecting "Launch SSH session".

Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-, Z10 (STL100-3)-, Z30 (STA100-5)-, Passport (SQW100-1)-, PlayBook (16GB)-
My Carrier: Verizon

Re: stderr on simulator

I think what he's refering to is that the console on Momentics doesn't print out anything.
---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
New Contributor
Posts: 6
Registered: ‎02-01-2012
My Device: Playbook
My Carrier: TMobile

Re: stderr on simulator

Thanks for answering. Useful informationSmiley Happy

The main issue was that program had segmentation fault and streams were not flushed properly so there was nothing on output.