User forums > Using Code::Blocks

debugger -> "The program is not being run."

(1/2) > >>

alle_meije:
Hi, I have a program (very ambitiously) called fastSVM, which depends on 2 other projects:

fastSVM <- libPMT <- libFFTW

I have compiled the Debug builds of these projects (from left to right),
all with Build Options -> Compiler settings -> Compiler flags

[v] Produce debugging symbols [-g]
[ ]
[ ]
[ ]
[v] Enable all compiler warnings (override most other settings) [-Wall]
[ ]
...

-- those two are ticked, and no other.

When I debug with a breakpoint on the 1st line of the main program, the Debugger window says:

>>
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Release
Adding source dir: /esa/data-amwink/software/cpp/pmtprojects/fastSVM/
Adding source dir: /esa/data-amwink/software/cpp/pmtprojects/fastSVM/
Adding file: bin/Release/fastSVM
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 (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
<<

But when I do 'next line' or 'step into' I immediately get

>>
The program is not being run.
Debugger finished with status 0
<<

Do I need to change the setup of Code::Blocks? Do I need to install debugging packages (other than gdb)?
Not having used the debugger for a while (couple of months) it has changed from working to not working...

Happy to send more info if that's helpful.

Any ideas?
Thanks!

oBFusCATed:

--- Code: ---Selecting target:
Release
Adding source dir: /esa/data-amwink/software/cpp/pmtprojects/fastSVM/
Adding source dir: /esa/data-amwink/software/cpp/pmtprojects/fastSVM/
Adding file: bin/Release/fastSVM

--- End code ---
Simple solution -> switch to the debug target, you're running the release one.

alle_meije:
Thanks for your quick reply. That sounds simple.

So for all projects I changed/confirmed " Project -> Properties -> Debugger -> Select target " to be " Debug "
Also, I did a "Clean workspace" for all Debug *and* Release targets, and only re-compiled the Debug targets.

The pull-down menu "Build target" is therefore set to "Debug" in all projects.

But when I start Debug, it still selects Release as the target...
Is there another place where this need to be selected?

Many thanks for your help

oBFusCATed:

--- Quote from: alle_meije on October 23, 2012, 03:42:34 pm ---So for all projects I changed/confirmed " Project -> Properties -> Debugger -> Select target " to be " Debug "

--- End quote ---
This is not needed...

What version of C::B are you using? How are you starting the debugger?

alle_meije:
I'm using Code::Blocks 10.05
(build: May 1 2011, 04:13:54 - wx2.8.11 (Linux, unicode) - 64 bit)

That's the latest one provided by Ubuntu as far as I know (10.05-2)

I just start the debugger via the menu, using [Debug/Continue], [Run to cursor] etc.

Navigation

[0] Message Index

[#] Next page

Go to full version