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
Posts: 93
Registered: ‎05-31-2012
My Device: BlackBerry Playbook
My Carrier: Bell

Watchpoint support?

Hello BB NDK devs,

 

Anyone know what the state of watchpoint support is?

HW Watchpoints don't seem to work.

SW Watchpoints seem to work once but stall the application thereafter.

 

Thanks!

 

Stephane

Developer
Posts: 188
Registered: ‎01-27-2012
My Device: playbook
My Carrier: ...

Re: Watchpoint support?

I can confirm they work from Qt creator. I have not tried any hardware break or watch points but in general I have had no issues setting soft break and watch points on my playbook for debugging...

Of course I had to configure, build and deploy the Qt libs in debug mode for this to work though

Cheers,

Jon

Developer
Posts: 368
Registered: ‎06-30-2012
My Device: Playbook, Z10LE, DevAlpha C
My Carrier: Telenor, Mobitel

Re: Watchpoint support?

@jheron

I'm also using QT Creator, and i dont have QT libraries compiled in debug mode. But i also can debug my apps, of course, i cant debug into QT libs, but i really dont need that. 

Developer
Posts: 188
Registered: ‎01-27-2012
My Device: playbook
My Carrier: ...

Re: Watchpoint support?

"i cant debug into QT libs, but i really dont need that. "

I hope you didn't just jinx yourself!

Smiley Happy

Cheers,

Jon

Developer
Posts: 368
Registered: ‎06-30-2012
My Device: Playbook, Z10LE, DevAlpha C
My Carrier: Telenor, Mobitel

Re: Watchpoint support?

No i did notSmiley Happy. I mean i cant go inside source of them (Qt libraries), but can debug my program.

Highlighted
Retired
Posts: 329
Registered: ‎05-07-2012
My Device: BB Alpha
My Carrier: N/A

Re: Watchpoint support?

Hi,

 

Can you show me the steps you perform to toggle a watchpoint?

 

Martin

Developer
Posts: 93
Registered: ‎05-31-2012
My Device: BlackBerry Playbook
My Carrier: Bell

Re: Watchpoint support?

Hi Martin,

 

I am enabling the watchpoint from the gdb console in QNX momentics:

 

set can-use-hw-watchpoints 0   <-- disable hardware watchpoints

watch expression

 

Also attempted using the UI to do the watch operation. Same results.

 

Thanks,

 

Stephane

Retired
Posts: 329
Registered: ‎05-07-2012
My Device: BB Alpha
My Carrier: N/A

Re: Watchpoint support?

Hmm this is odd - As far as I know the UI mechanisms in place are functional - I would recomment logging an Issue for this here:

https://www.blackberry.com/jira/secure/Dashboard.jspa

 

Thanks,

 

Martin