Author Topic: Can't make debbuger work  (Read 7327 times)

Offline mgoyanes

  • Multiple posting newcomer
  • *
  • Posts: 14
Can't make debbuger work
« 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 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


Offline mgoyanes

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: Can't make debbuger work
« Reply #1 on: April 16, 2012, 09:40:56 am »
No one??

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Can't make debbuger work
« Reply #2 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline mgoyanes

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: Can't make debbuger work
« Reply #3 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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Can't make debbuger work
« Reply #4 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline mgoyanes

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: Can't make debbuger work
« Reply #5 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...

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Can't make debbuger work
« Reply #6 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"

Offline mgoyanes

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: Can't make debbuger work
« Reply #7 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
 

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Can't make debbuger work
« Reply #8 on: April 16, 2012, 01:34:48 pm »
(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!]

Offline mgoyanes

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: Can't make debbuger work
« Reply #9 on: April 16, 2012, 01:45:14 pm »