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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Native Development

Reply
Regular Contributor
step_jac
Posts: 77
Registered: ‎05-31-2012
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

Please use plain text.
Developer
jheron
Posts: 183
Registered: ‎01-27-2012
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

Please use plain text.
Developer
mzex
Posts: 315
Registered: ‎06-30-2012
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. 

Please use plain text.
Developer
jheron
Posts: 183
Registered: ‎01-27-2012
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! :Clover:

:smileyhappy:

Cheers,

Jon

Please use plain text.
Developer
mzex
Posts: 315
Registered: ‎06-30-2012
My Carrier: Telenor, Mobitel

Re: Watchpoint support?

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

Please use plain text.
BlackBerry Development Advisor
mgoulet
Posts: 329
Registered: ‎05-07-2012
My Carrier: N/A

Re: Watchpoint support?

Hi,

 

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

 

Martin

Please use plain text.
Regular Contributor
step_jac
Posts: 77
Registered: ‎05-31-2012
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

Please use plain text.
BlackBerry Development Advisor
mgoulet
Posts: 329
Registered: ‎05-07-2012
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

 

Please use plain text.