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: 90
Registered: ‎05-31-2012
My Device: BlackBerry Playbook

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

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

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

Re: Watchpoint support?

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

I hope you didn't just jinx yourself! :Clover:

:smileyhappy:

Cheers,

Jon

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

Re: Watchpoint support?

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

BlackBerry Development Advisor (Retired)
Posts: 329
Registered: ‎05-07-2012
My Device: BB Alpha

Re: Watchpoint support?

Hi,

 

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

 

Martin

Developer
Posts: 90
Registered: ‎05-31-2012
My Device: BlackBerry Playbook

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

BlackBerry Development Advisor (Retired)
Posts: 329
Registered: ‎05-07-2012
My Device: BB Alpha

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