In my Blackberry application the debugger is not hitting on some breakpoints. I am working in Eclipse. Can someone please help me.
+2
A:
Quick checklist:
- are you debugging the app instead of running it?
- are the breakpoints shown in the Breakpoints view? (Debug perspective)
- is the "skip all breakpoints" enabled or disabled? (Breakpoints view)
- is the particular breakpoint enabled or disabled? (rightclick on breakpoint)
- are the breakpoints conditionally and is the condition met? (rightclick on breakpoint)
- is you debugger connected to the VM running the app? (Debug view, connect to process)
- are the breakpoints in the app you are actually running?
- and finally: are the breakpoints in code that gets executed by the VM?
Sanity checks:
- put a breakpoint at the application entry point (e.g.
main
method) - mock up an Hello World app to test debugger behaviour
- 15 mins breaks now and then and breathing regularly is good for you
eljenso
2009-10-24 10:09:41
A:
Is the source code you are debugging the same compiled code you are running? They must be identical for your line breakpoints to trigger. If your running in eclipse try the following to confirm that your source is being compiled:
- add a println statement just before your breakpoint - check this is printed
- Try "clean all" ænd rebuild your project. Very occasionally I've had issues with eclipse not "building on save" and a restart or clean all has fixed it.
Joel
2009-10-24 10:14:53
+1
A:
Make sure you have the most up-to-date version of Java. There was a bug in a version a little while back that would cause breakpoints to be ignored. I had the same problems using J2SE in Eclipse.
Zarkonnen
2009-10-24 11:38:36