Beginning user, have a little Craps simulator I wrote that is compiling and running fine. Tried to use the debugger and I'm getting:
Cannot open file: /cygdrive/c/cpp/Dice/Dice.cpp
full thing:
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: C:\cpp\Dice\
Adding source dir: C:\cpp\Dice\
Adding file: C:\cpp\Dice\bin\Debug\Dice.exe
Changing directory to: C:/cpp/Dice/.
Set variable: PATH=.;C:\cyg\bin;C:\cyg;C:\ProgramData\Oracle\Java\javapath;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 (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\EmEditor;c:\cyg;c:\cyg\bin;C:\Users\ScottNew\AppData\Local\Microsoft\WindowsApps
Starting debugger: C:\cyg\bin\gdb.exe -nx -fullname -quiet -args C:/cpp/Dice/bin/Debug/Dice.exe
done
Setting breakpoints
Debugger name and version: GNU gdb (GDB) (Cygwin 7.10.1-1) 7.10.1
Child process PID: 8908
Cannot open file: /cygdrive/c/cpp/Dice/Dice.cpp
At /cygdrive/c/cpp/Dice/Dice.cpp:92
Debugger finished with status 0
I originally couldn't get it to find gdb, but then I went to Cygwin and downloaded it, that seemed to help. :-)
If I open up the cygwin64 terminal it seems to be able to find it just fine though.
https://ibb.co/gxr7CxAlso I saw the -g in the build info so I'm pretty sure the project was built with debugging info.
I found some stack overflow articles that seemed similar, but they were like 4 years old. I downloaded codeblocks last week (March 2018).