Author Topic: Help! debugger doesnt work. No executable specified, use `target exec'.  (Read 17722 times)

Offline pofke1

  • Single posting newcomer
  • *
  • Posts: 3
Hello I have been trying to debug my program but i get: "Starting the debuggee failed: No executable specified, use `target exec'." Here my logs:
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: E:\CodeBlocks\SDL2 porjects\Game\
Adding source dir: E:\CodeBlocks\SDL2 porjects\Game\
Adding file: E:\CodeBlocks\SDL2 porjects\Game\bin\Debug\mygame.exe
Changing directory to: "E:/CodeBlocks/SDL2 porjects/Game/."
Set variable: PATH=.;E:\CodeBlocks\MinGW\mingw64\bin;E:\CodeBlocks\MinGW\mingw64;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Program Files (x86)\Skype\Phone;C:\Program Files (x86)\EaseUS\Todo Backup\bin\x64

[debug]Command-line: E:\CodeBlocks\MinGW\mingw64\bin\gdb.exe -nx -fullname  -quiet  -args "E:/CodeBlocks/SDL2 porjects/Game/bin/Debug/mygame.exe"
[debug]Working dir : E:\CodeBlocks\SDL2 porjects\Game

Starting debugger: E:\CodeBlocks\MinGW\mingw64\bin\gdb.exe -nx -fullname  -quiet  -args "E:/CodeBlocks/SDL2 porjects/Game/bin/Debug/mygame.exe"
done

[debug]> set prompt >>>>>>cb_gdb:

Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints

[debug]E:/CodeBlocks/SDL2: No such file or directory.
[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) 7.9.1
[debug]Copyright (C) 2015 Free Software Foundation, Inc.
[debug]License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
[debug]This is free software: you are free to change and redistribute it.
[debug]There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
[debug]and "show warranty" for details.
[debug]This GDB was configured as "x86_64-w64-mingw32".
[debug]Type "show configuration" for configuration details.
[debug]For bug reporting instructions, please see:
[debug]<http://www.gnu.org/software/gdb/bugs/>.
[debug]Find the GDB manual and other documentation resources online at:
[debug]<http://www.gnu.org/software/gdb/documentation/>.
[debug]For help, type "help".
[debug]Type "apropos word" to search for commands related to "word".
[debug]>>>>>>cb_gdb:
[debug]> set confirm off

Debugger name and version: GNU gdb (GDB) 7.9.1

[debug]>>>>>>cb_gdb:
[debug]> set width 0
[debug]>>>>>>cb_gdb:
[debug]> set height 0
[debug]>>>>>>cb_gdb:
[debug]> set breakpoint pending on
[debug]>>>>>>cb_gdb:
[debug]> set print asm-demangle on
[debug]>>>>>>cb_gdb:
[debug]> set unwindonsignal on
[debug]>>>>>>cb_gdb:
[debug]> set print elements 0
[debug]>>>>>>cb_gdb:
[debug]> set new-console on
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor att
[debug]>>>>>>cb_gdb:
[debug]> catch throw
[debug]Catchpoint 1 (throw)
[debug]>>>>>>cb_gdb:
[debug]> source E:\CodeBlocks\share\codeblocks/scripts/stl-views-1.0.3.gdb
[debug]>>>>>>cb_gdb:
[debug]> directory "E:/CodeBlocks/SDL2 porjects/Game/"
[debug]Source directories searched: E:/CodeBlocks/SDL2 porjects/Game;$cdir;$cwd
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]No executable specified, use `target exec'.
[debug]Starting program:  porjects/Game/bin/Debug/mygame.exe
[debug]>>>>>>cb_gdb:

Starting the debuggee failed: No executable specified, use `target exec'.

[debug]> quit

Debugger finished with status 0

How can I fix this? thanks.
« Last Edit: December 29, 2015, 01:48:08 pm by pofke1 »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Help! debugger doesnt work. No executable specified, use `target exec'.
« Reply #1 on: December 29, 2015, 04:00:51 pm »
Remove the space in the "SDL2 porjects" and it will work.
(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 pofke1

  • Single posting newcomer
  • *
  • Posts: 3
Re: Help! debugger doesnt work. No executable specified, use `target exec'.
« Reply #2 on: December 29, 2015, 04:29:00 pm »
Remove the space in the "SDL2 porjects" and it will work.
Thanks it works now !  ;D