Code::Blocks Forums

User forums => Help => Topic started by: mgoyanes on April 15, 2012, 04:48:52 pm

Title: Can't make debbuger work
Post by: mgoyanes on April 15, 2012, 04:48:52 pm
Hi there.

I have some program in C and after making 2 breakpoints I want to use the debbuger function but nothing happens. On the watches pane nothing shows. Used the instructions http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks (http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks) but it still not work.

I'm running Code::Blocks 10.05 on a Win 7 Ultimate x64 machine. MinGW is installed on C:\MinGW

Here is a video with all my code::blocks settings and making a demonstration run.

http://youtu.be/dGOk1MOoj4o (http://youtu.be/dGOk1MOoj4o)

And here is some strange thing.
I have a Win 7 Ultimate x64 machine and MinGW is installed on C:\MinGW but on a virtual machine. I believe both code:blocks and compiler have the same settings on machine and virtual machine but debugging is working OK on the virtual machine

Here is a video with all my code::blocks settings and making a demonstration run but now on my virtual machine.

http://youtu.be/Qs4GPrKzeTs (http://youtu.be/Qs4GPrKzeTs)

Any idea why it's working on virtual machine but not on my machine?

thanks,

kodiak

Title: Re: Can't make debbuger work
Post by: mgoyanes on April 16, 2012, 09:40:56 am
No one??
Title: Re: Can't make debbuger work
Post by: MortenMacFly on April 16, 2012, 11:08:09 am
No one??
I'm afraid nobody is interested in watching long videos where half the information is missing. Post a (zipped) minimal demo project and a full compiler log to reproduce.
Title: Re: Can't make debbuger work
Post by: mgoyanes on April 16, 2012, 11:41:38 am
I'm afraid nobody is interested in watching long videos where half the information is missing. Post a (zipped) minimal demo project and a full compiler log to reproduce.

Videos are not that long and didn't know beforehand what kind of information should I post. To my understanding was best than nothing.

Here is the zip and the full compiler log follows:
Quote
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: G:\Miguel\LEI\3 Ano\2 Semestre\PPP\Práticas\Ficha03\teste\
Adding source dir: G:\Miguel\LEI\3 Ano\2 Semestre\PPP\Práticas\Ficha03\teste\
Adding file: bin\Debug\teste.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 (GDB) 7.3.1
Child process PID: 6636
Continuing...
The program is not being run.
Debugger finished with status 0
Title: Re: Can't make debbuger work
Post by: MortenMacFly on April 16, 2012, 12:46:18 pm
Here is the zip and the full compiler log follows:
[...]
This is not the full compiler log, this is the "launch debugger" log. Please read this:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Also notice the FAQ, see my sig for a link.
Title: Re: Can't make debbuger work
Post by: mgoyanes on April 16, 2012, 12:51:36 pm
Here is the zip and the full compiler log follows:
[...]
This is not the full compiler log, this is the "launch debugger" log. Please read this:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Also notice the FAQ, see my sig for a link.

Already have done Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
Where is it stored? Sorry but can't seem to find it...
Title: Re: Can't make debbuger work
Post by: Jenna on April 16, 2012, 12:58:48 pm
Already have done Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
Where is it stored? Sorry but can't seem to find it...

"Build Log"
Title: Re: Can't make debbuger work
Post by: mgoyanes on April 16, 2012, 01:01:37 pm
Quote
mingw32-gcc.exe -Wall  -Wall -g  -pedantic -Wall -ansi    -c "G:\Miguel\LEI\3 Ano\2 Semestre\PPP\Práticas\Ficha03\teste\main.c" -o obj\Debug\main.o
mingw32-g++.exe  -o bin\Debug\teste.exe obj\Debug\main.o   
Output size is 134,36 KB
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings
 
Title: Re: Can't make debbuger work
Post by: oBFusCATed on April 16, 2012, 01:34:48 pm
I guess you've hit this problem: http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks#Path_with_spaces
Title: Re: Can't make debbuger work
Post by: mgoyanes on April 16, 2012, 01:45:14 pm
I guess you've hit this problem: http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks#Path_with_spaces

Finally.. Thanks for that. Solved my problem :)