Author Topic: Debugging doesn't work any more.  (Read 6380 times)

Offline jarro_2783

  • Multiple posting newcomer
  • *
  • Posts: 99
    • Project Freedom
Debugging doesn't work any more.
« on: August 28, 2006, 09:25:07 am »
I can't debug any programs. It used to work and now since I formatted my computer and installed the latest version of code blocks it doesn't work. Here is a screenshot of what I mean.



The problems are the two lines

Quote
No source file named C:/programming/programs/test-debug/main.cpp.
No source file named C:/games/freedom/game/prjfreedom/src/engine/win32/win32_filesystem.cpp.

The first line is the break point I have got which you can see in the screenshot. The second line is an old breakpoint from a project I had open just before this one and then closed, I don't know why that's there.
The main problem is it doesn't seem to be finding the file and breaking where I want it to.

I did turn debugging on with -g, and it works if I use gdb straight up.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Debugging doesn't work any more.
« Reply #1 on: August 28, 2006, 09:32:53 am »
Mind sharing some more info, like your programs versions (gcc, gdb)?
Be patient!
This bug will be fixed soon...

Offline jarro_2783

  • Multiple posting newcomer
  • *
  • Posts: 99
    • Project Freedom
Re: Debugging doesn't work any more.
« Reply #2 on: August 28, 2006, 09:38:58 am »
oh sorry, I installed the latest mingw by downloading all the packages separately.

gcc - 3.4.5
gdb 5.2.1
C::B - august 27th nightly.

I think that's all.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Debugging doesn't work any more.
« Reply #3 on: August 28, 2006, 09:40:32 am »
Be patient!
This bug will be fixed soon...

Offline jarro_2783

  • Multiple posting newcomer
  • *
  • Posts: 99
    • Project Freedom
Re: Debugging doesn't work any more.
« Reply #4 on: August 28, 2006, 09:45:45 am »
thanks, it worked.
Any idea why they don't have that on their download page?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Debugging doesn't work any more.
« Reply #5 on: August 28, 2006, 09:50:19 am »
thanks, it worked.
Any idea why they don't have that on their download page?

Have what? The link I posted comes from the MinGW download page. It's at the bottom of the page where it says "Snapshot".
Be patient!
This bug will be fixed soon...

Offline jarro_2783

  • Multiple posting newcomer
  • *
  • Posts: 99
    • Project Freedom
Re: Debugging doesn't work any more.
« Reply #6 on: August 28, 2006, 11:50:44 pm »
ok, I missed that. I got it from higher up where it is listed under "current".

Offline Phatency

  • Multiple posting newcomer
  • *
  • Posts: 65
Re: Debugging doesn't work any more.
« Reply #7 on: August 29, 2006, 09:56:27 am »
I've been having the same problem since last week, and all I've done is install nightlies.
MinGW 5.0.3
 - gcc 3.4.2 (should I get 3.4.5 candidate?)
 - gdb 6.3
CodeBlocks Version 1.0 revision 2918 ()   gcc 3.4.5 Windows/unicode


I created two console application projects (test & test2), and now breakpoints seem to work for these projects (don't know why they didn't work before).

I still get "no source file named x" warnings from all projects with breakpoints which I have opened since codeblocks started (even closed ones!), and I have to open these projects, remove breakpoints, and the warnings are gone.

Simple example with 2 console application -projects both with one breakpoint.
Code
Building to ensure sources are up-to-date
Build succeeded
Selecting target: Debug
Adding source dir: C:\CodeBlocks\user\temp\test2\
Adding source dir: C:\CodeBlocks\user\temp\test2\
Adding file: .\test2.exe
Starting debugger: done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb 6.3
No source file named C:/CodeBlocks/user/temp/test/main.cpp.
Breakpoint 1 (C:/CodeBlocks/user/temp/test/main.cpp:5) pending.
At C:/CodeBlocks/user/temp/test2/main.cpp:5
Debugger finished with status 0

« Last Edit: August 29, 2006, 03:04:07 pm by Phatency »

Offline Phatency

  • Multiple posting newcomer
  • *
  • Posts: 65
Re: Debugging doesn't work any more.
« Reply #8 on: August 30, 2006, 07:39:17 pm »
I still have these issues after clean-installing gcc 3.4.5 (with gdb 6.3.2). I also have one project in which breakpoints don't work at all, but I haven't found a way to recreate such project. No breakpoints seem to be cleaned after closing a project, so all breakpoints in closed files are still registered to gdb, resulting to "no source file named" errors.

Offline Phatency

  • Multiple posting newcomer
  • *
  • Posts: 65
Re: Debugging doesn't work any more.
« Reply #9 on: September 02, 2006, 11:16:35 am »
While no one seemed to be interested, I took a few screenshots. Is this really the intended behaviour?

Two console-applications with both one breakpoint:
http://phatency.loota.fi/img/ss/cb_bp.png

Closing the other console-application, re-debugging, breakpoint from the closed project is still listed:
http://phatency.loota.fi/img/ss/cb_bp2.png

edit:
submitted to BerliOS.
« Last Edit: September 02, 2006, 11:54:05 am by Phatency »

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5494
Re: Debugging doesn't work any more.
« Reply #10 on: September 02, 2006, 11:38:35 am »
we will get to the debugger, recently codecompletion got high attention.

Could you please file all these issus with attachments to the berlios project page, well the bug tracker that is.

many thanks.