Code::Blocks Forums

User forums => Help => Topic started by: rem on September 06, 2005, 02:21:50 pm

Title: no debug highlight or codeblocks highlights wrong line
Post by: rem on September 06, 2005, 02:21:50 pm
Does any know what is going on. Often when I want to debug my program I just can't use gdb with codeblocks becouse it show wrong code line or it doesn't show it at all. I know that debugger is working becouse it changes the variables in watches window but i don't know which line is currently executed. When I try to debug the console project everything is ok, but not with wxwidgets. If i set display debuggers log's I can see it in the debuggers log's window. But still no line is highlighted
rem
Title: Re: no debug highlight or codeblocks highlights wrong line
Post by: mandrav on September 06, 2005, 06:43:00 pm
Make sure your executable (the one being debugged) is not compiled with *any* optimizations turned on...
Title: Re: no debug highlight or codeblocks highlights wrong line
Post by: rem on September 08, 2005, 01:13:56 pm
Project   : wxWidgets application
Compiler  : GNU GCC Compiler (called directly)
Directory : C:\Dev-Cpp\Projects\Smieci\Śmieci1\
--------------------------------------------------------------------------------
Now I know what was the problem, I started my project in the Śmieci directory with Ś letter on the beginning. When I changed it to S the problem is gone. Thanks any way, mandrav for your advise.