Author Topic: ERROR: You need to specify a debugger program in the debuggers's settings.  (Read 371 times)

Offline jekslein

  • Single posting newcomer
  • *
  • Posts: 1
    • https://roadrunneremail.org/
#include <iostream>
using namespace std;
int main()
{
    cout << "Hello world!";
    return 0;
}

Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target:

Debug
ERROR: You need to specify a debugger program in the debuggers's settings.
(For MinGW compilers, it's 'gdb.exe' (without the quotes))
(For MSVC compilers, it's 'cdb.exe' (without the quotes))

How to resolve this error??? please help.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12695
    • Travis build status
Setting -> Debugger -> Your config -> Select the proper path to the gdb executable you've installed.
(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 pabristow

  • Multiple posting newcomer
  • *
  • Posts: 58
Debug exe is

"C:\Program Files\mingw-w64\mingw-w64-x86_64-10.0.1-snapshot20200223-7.0.0-r1\mingw64\bin\gdb.exe"

Settings, Debugger - browsed to this and made this Executable path

"C:\Program Files\mingw-w64\mingw-w64-x86_64-10.0.1-snapshot20200223-7.0.0-r1\mingw64\bin"

Compiler says using default debugger (was invalid debugger).

Active debugger config: GDB/CDB debugger:Default

Building to ensure sources are up-to-date
Selecting target:
Debug_gcc1001
Adding source dir: I:\Cpp\math\test_if_type\
Adding source dir: I:\Cpp\math\test_if_type\
Adding file: I:\Cpp\math\test_if_type\bin\Debug\test_if_type.exe
Changing directory to: I:/Cpp/math/test_if_type/.
Set variable: PATH=.;C:\Program Files\mingw-w64\mingw-w64-x86_64-10.0.1-snapshot20200223-7.0.0-r1\mingw64\bin;C:\Program Files\mingw-w64\mingw-w64-x86_64-10.0.1-snapshot20200223-7.0.0-r1\mingw64;C:\Program Files\mingw-w64\mingw-w64-x86_64-9.2.0-7.0.0\mingw64\bin;C:\Program Files\mingw-w64\mingw-w64-x86_64-9.2.0-7.0.0\mingw64;C:\Program Files\mingw-w64\x86_64-8.1.0-win32-seh-rt_v6-rev0\mingw64\bin;C:\Program Files\mingw-w64\x86_64-8.1.0-win32-seh-rt_v6-rev0\mingw64;I:\boost;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\doxygen\bin;C:\Program Files\dotnet;I:\boost\dist\bin;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\LLVM\clang-900\LLVM\bin;C:\Program Files\Git\cmd;C:\Program Files\CMake\bin;C:\Program Files\TortoiseGit\bin;C:\LLVM\clang-1000\LLVM\bin;C:\Users\Paul\AppData\Local\Programs\Python\Python37\Scripts;C:\Users\Paul\AppData\Local\Programs\Python\Python37;C:\Users\Paul\AppData\Local\Microsoft\WindowsApps;C:\Users\Paul\AppData\Local\GitHubDesktop\bin;\;C:\Users\Paul\AppData\Local\Programs\Microsoft VS Code\bin;C:\LLVM\bin
Starting debugger: C:\Program Files\mingw-w64\mingw-w64-x86_64-10.0.1-snapshot20200223-7.0.0-r1\mingw64\bin -nx -fullname -quiet  -args I:/Cpp/math/test_if_type/bin/Debug/test_if_type.exe
failed

So it is not the /bin/ path that is required.

But using the Full File Specification

"C:\Program Files\mingw-w64\mingw-w64-x86_64-10.0.1-snapshot20200223-7.0.0-r1\mingw64\bin\gdb.exe"

 works as expected.

Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target:
Debug_gcc1001
Adding source dir: I:\Cpp\math\test_if_type\
Adding source dir: I:\Cpp\math\test_if_type\
Adding file: I:\Cpp\math\test_if_type\bin\Debug\test_if_type.exe
Changing directory to: I:/Cpp/math/test_if_type/.
Set variable: PATH=.;C:\Program Files\mingw-w64\mingw-w64-x86_64-10.0.1-snapshot20200223-7.0.0-r1\mingw64\bin;C:\Program Files\mingw-w64\mingw-w64-x86_64-10.0.1-snapshot20200223-7.0.0-r1\mingw64;C:\Program Files\mingw-w64\mingw-w64-x86_64-9.2.0-7.0.0\mingw64\bin;C:\Program Files\mingw-w64\mingw-w64-x86_64-9.2.0-7.0.0\mingw64;C:\Program Files\mingw-w64\x86_64-8.1.0-win32-seh-rt_v6-rev0\mingw64\bin;C:\Program Files\mingw-w64\x86_64-8.1.0-win32-seh-rt_v6-rev0\mingw64;I:\boost;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\doxygen\bin;C:\Program Files\dotnet;I:\boost\dist\bin;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\LLVM\clang-900\LLVM\bin;C:\Program Files\Git\cmd;C:\Program Files\CMake\bin;C:\Program Files\TortoiseGit\bin;C:\LLVM\clang-1000\LLVM\bin;C:\Users\Paul\AppData\Local\Programs\Python\Python37\Scripts;C:\Users\Paul\AppData\Local\Programs\Python\Python37;C:\Users\Paul\AppData\Local\Microsoft\WindowsApps;C:\Users\Paul\AppData\Local\GitHubDesktop\bin;\;C:\Users\Paul\AppData\Local\Programs\Microsoft VS Code\bin;C:\LLVM\bin
Starting debugger: C:\Program Files\mingw-w64\mingw-w64-x86_64-10.0.1-snapshot20200223-7.0.0-r1\mingw64\bin\gdb.exe -nx -fullname -quiet  -args I:/Cpp/math/test_if_type/bin/Debug/test_if_type.exe
done
Setting breakpoints
Debugger name and version: GNU gdb (GDB for MinGW-W64 x86_64, built by Brecht Sanders) 9.1
Child process PID: 1792
[Inferior 1 (process 1792) exited normally]
Debugger finished with status 0

But then I can't get the debugger to stop!

Starting debugger: C:\Program Files\mingw-w64\mingw-w64-x86_64-10.0.1-snapshot20200223-7.0.0-r1\mingw64\bin\gdb.exe -nx -fullname -quiet  -args I:/Cpp/math/test_if_type/bin/Debug/test_if_type.exe
done
Setting breakpoints
Debugger name and version: GNU gdb (GDB for MinGW-W64 x86_64, built by Brecht Sanders) 9.1
Child process PID: 20748
At I:\Cpp\math\test_if_type\main.cpp:57
At I:\Cpp\math\test_if_type\main.cpp:76
At I:\Cpp\math\test_if_type\main.cpp:77
At I:\Cpp\math\test_if_type\main.cpp:77
At I:\Cpp\math\test_if_type\main.cpp:77
In __tmainCRTStartup () at crt/crtexe.c:339 ()
Trying to interrupt process with pid: 20748; child pid: 20748 gdb pid: 15672
Trying to interrupt process with pid: 20748; child pid: 20748 gdb pid: 15672

Tried to use task manager to stop the task, but "Access denied".

Trying to interrupt process with pid: 20748; child pid: 20748 gdb pid: 15672


Closing CB causes a popup with:

" The project you were debugging has closed.  (The application most likely just finished.  The debugging session will terminate immediately."


Suggestions welcome.

PS Is this connected with this closing buglet?

https://sourceforge.net/p/codeblocks/tickets/976/
http://forums.codeblocks.org/index.php/topic,23952.new.html#new







Offline pabristow

  • Multiple posting newcomer
  • *
  • Posts: 58
Update:  after reboot, CB debugging works as expected.

  ::)