Debugging issue [message #1835674] |
Thu, 10 December 2020 00:16  |
Eclipse User |
|
|
|
Facing issues in the both topics mentioned below:
1. Not hitting the breakpoints specified or where we supposed to keep. (even if the breakpoint is enabled by tick mark).
2. The program is not entering to a particular function.
Eg; The program is not entering to while loop in file1.c from main.c
In the main.c , we call a function() , which is in file1.c . But if I keep a breakpoint in the while loop inside the function(), the breakpoint is not hitting.
Please let me know what is the reason for this behavior.
Thanks
|
|
|
Re: Debugging issue [message #1835745 is a reply to message #1835674] |
Fri, 11 December 2020 06:45  |
Eclipse User |
|
|
|
Hi
If you have a repro, please submit a bug.
NB. The breakpoint indicators can be very confusing. They are often not shown, particularly in ? nested classes? and ? incrementally recompiled code ? where the line number in memory has diverged from the line number in the filespace.. They are often shown on the 'wrong' line after an edit and may not work if the 'new' line is not executable, e.g. a comment / uninitialized declaration.
However my experience suggests that non-functional breakpoints are ultimately almost always idiot, albeit deceived, user - wrong debugger - wrong program - stale code - incorrect test file ...
Sometimes I only discover how stupid I have been when I try to prepare a small repro for a Bugzilla.
(Correction: I thought I was responding to a JDT debugger problem, but most of the same issues apply to C++ with the extra opportunities are asynchronism between display and code.)
Regards
Ed Willink
[Updated on: Fri, 11 December 2020 06:48] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03733 seconds