Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 05:16 Go to next message
dileep nr is currently offline dileep nrFriend
Messages: 1
Registered: November 2020
Junior Member
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 11:45 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7681
Registered: July 2009
Senior Member
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 11:48]

Report message to a moderator

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


Current Time: Sun Dec 22 06:27:50 GMT 2024

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

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

Back to the top