News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

debugger menu item disabled in CodeBlocks

Started by mq, January 28, 2020, 10:13:29 AM

Previous topic - Next topic

mq

Since my debugger didn't work, I deleted default configuration", while it still didn't, so I delete the new debugger I have created and reset the Default one, now, the menu item on CodeBlocks were all grey and disable. Is here any solution ?

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

mq


stahta01

#3
Quote from: mq on January 29, 2020, 03:00:20 AM
Is "Code::Blocks plugin" ?

No, it is not; a CB Plugin requires a CB Project to build it.
You have no CB Project open!

Edit: Debugger is a CB Plugin; your code is not.

Post a build log in Code Tags; if you want more feedback!

http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

mq

I tried it, the menu active again,while, I want to know: COULDN'T I debug in Console application?

stahta01

Quote from: mq on January 29, 2020, 03:13:05 AM
I tried it, the menu active again,while, I want to know: COULDN'T I debug in Console application?

Debugging without a CB Project does not work to my knowledge!

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

mq

Thanks for you gave me the link:http://wiki.codeblocks.org/index.php/Creating_a_new_project

it inspired me, I found the solution:settings-->compiler-->compiler settings-->compilers Flags-->debugging-->produce debugging symbols.  Marked this item, the menu active again.

The new question is:

Debugger name and version: GNU gdb (GDB) 8.1
Starting the debuggee failed: No executable specified, use `target exec'.
Debugger finished with status 0

Where to set this one?