Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Debugging issue(Debugging issue in keeping the breakpoints and control is not going to a particular function)
Debugging issue [message #1835674] Thu, 10 December 2020 00:16 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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

Previous Topic:Advice on debugging C++ on Linux?
Next Topic:Linux terminal as Debug console
Goto Forum:
  


Current Time: Mon Jul 07 22:30:08 EDT 2025

Powered by FUDForum. Page generated in 0.03733 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top