User forums > Help

[FIXED] Debugger issue [update of gdb needed]

<< < (3/4) > >>

BlueHazzard:
Yea, also gdb does not like non ascii charachters, i would move your project from the sub folder "R##visions_Ludo" to something with only ascii characters.

Actually i do not know if gdb does not like it or how we call gdb... Anyway i would only use ascii characters in paths (and probably _ instead of spaces, but this is a personal preference)

thierryv:
So I replaced my exercise folder and placed it in the root of "C:\" I also placed the debugger in "C:\MinGW" but nothing happens, the terminal doesn't pop when I press the red arrow to start the debugging.
I also installed "Msys64" to try with something else, but ... no

thierryv:
By moving the location of the compiler and debugger to "C:\CodeBlocks\MinGW\Bin" the terminal appears well, but disappears almost as quickly, but still no possibility to do step by step, or go into.

BlueHazzard:

--- Code: ---[debug]"C:/Programmations/Ex_6/bin/Debug/Ex_6.exe": not in executable format: File format not recognized
[debug](gdb)
--- End code ---
ok, now it is getting funny...

Does the exe exists?
Try to recompile your project:
From the drop down menu near the green arrow select "debug"
Now rebuild the target with the blue circle arrows or Build->Rebuild
then try again...


--- Quote ---I also installed "Msys64"
--- End quote ---
ow... this could now lead to problems like you are seeing...

BlueHazzard:
From your last log

--- Quote ---[debug][Thread 4760.0x2dbc exited with code 0]
[debug][Inferior 1 (process 4760) exited normally]
--- End quote ---
This indicates that your program exits before it reaches the breakpint...
Try to add the breakpoint at the first line in the main function and then single step trough (not by using the red arrow, but the single step button)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version