News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Can't make debbuger work

Started by mgoyanes, April 15, 2012, 04:48:52 PM

Previous topic - Next topic

mgoyanes

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 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

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

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

thanks,

kodiak


mgoyanes


MortenMacFly

Quote from: mgoyanes on April 16, 2012, 09:40:56 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

mgoyanes

Quote from: MortenMacFly on April 16, 2012, 11:08:09 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

MortenMacFly

Quote from: mgoyanes on April 16, 2012, 11:41:38 AM
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

mgoyanes

Quote from: MortenMacFly on April 16, 2012, 12:46:18 PM
Quote from: mgoyanes on April 16, 2012, 11:41:38 AM
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...

Jenna

Quote from: mgoyanes on April 16, 2012, 12:51:36 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"

mgoyanes

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


oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]