User forums > General (but related to Code::Blocks)

compiler debug code

<< < (2/2)


--- Quote from: maxcy on October 25, 2023, 03:21:41 am ---This particular code comes from a book of 13 chapters. I've used the debugger in many of the projects throughout this book. Setting breakpoints and adding watches are no problem in any of the other projects!  Compiling in runtime/debug mode is simple!!  This particular project is an adaptation of a project from a modified project developed from the previous chapter and it debugged with no problems! But, in this particular project, when I run it the debug mode, it ignores any break points, even if I put one right after main()! Very perplexing to say the least!

--- End quote ---
Are you sure you have the -g compile option enabled and the optimization option disabled?


[0] Message Index

[*] Previous page

Go to full version