Here's the debugger log when project is saved on share (when debugger doesn't work):
Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: /run/user/1000/gvfs/smb-share:server=192.168.1.1,share=public/CodeBlocksProjects/debugTest/
Adding source dir: /run/user/1000/gvfs/smb-share:server=192.168.1.1,share=public/CodeBlocksProjects/debugTest/
Adding file: /run/user/1000/gvfs/smb-share:server=192.168.1.1,share=public/CodeBlocksProjects/debugTest/bin/Debug/debugTest
Changing directory to: /run/user/1000/gvfs/smb-share:server=192.168.1.1,share=public/CodeBlocksProjects/debugTest/.
Set variable: LD_LIBRARY_PATH=.:
[debug]Command-line: /bin/gdb -nx -fullname -quiet -args /run/user/1000/gvfs/smb-share:server=192.168.1.1,share=public/CodeBlocksProjects/debugTest/bin/Debug/debugTest
[debug]Working dir : /run/user/1000/gvfs/smb-share:server=192.168.1.1,share=public/CodeBlocksProjects/debugTest
Starting debugger: /bin/gdb -nx -fullname -quiet -args /run/user/1000/gvfs/smb-share:server=192.168.1.1,share=public/CodeBlocksProjects/debugTest/bin/Debug/debugTest
done
[debug]> set prompt >>>>>>cb_gdb:
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
[debug]Reading symbols from /run/user/1000/gvfs/smb-share:server=192.168.1.1,share=public/CodeBlocksProjects/debugTest/bin/Debug/debugTest...done.
[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-80.el7
[debug]Copyright (C) 2013 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-redhat-linux-gnu".
[debug]For bug reporting instructions, please see:
[debug]<http://www.gnu.org/software/gdb/bugs/>.
[debug]>>>>>>cb_gdb:
[debug]> set confirm off
Debugger name and version: GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-80.el7
[debug]>>>>>>cb_gdb:
[debug]> set width 0
[debug]Using terminal's PID as console PID 29034, TTY /dev/pts/1
[debug]Queued:[tty /dev/pts/1]
[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 disassembly-flavor intel
[debug]>>>>>>cb_gdb:
[debug]> catch throw
[debug]Function "__cxa_throw" not defined.
[debug]Catchpoint 1 (throw)
[debug]>>>>>>cb_gdb:
[debug]> source /usr/share/codeblocks/scripts/stl-views-1.0.3.gdb
[debug]>>>>>>cb_gdb:
[debug]> directory /run/user/1000/gvfs/smb-share:server=192.168.1.1,share=public/CodeBlocksProjects/debugTest/
[debug]Source directories searched: /run/user/1000/gvfs/smb-share:/run/user/1000/gvfs/smb-share:server=192.168.1.1,share=public/CodeBlocksProjects/debugTest/server=192.168.1.1,share=public/CodeBlocksProjects/debugTest:$cdir:$cwd
[debug]>>>>>>cb_gdb:
[debug]> tty /dev/pts/1
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Starting program: /run/user/1000/gvfs/smb-share:server=192.168.1.1,share=public/CodeBlocksProjects/debugTest/bin/Debug/debugTest
[debug][Inferior 1 (process 29036) exited normally]
[debug]Missing separate debuginfos, use: debuginfo-install glibc-2.17-106.el7_2.8.x86_64 libgcc-4.8.5-4.el7.x86_64 libstdc++-4.8.5-4.el7.x86_64
[debug]>>>>>>cb_gdb:
[Inferior 1 (process 29036) exited normally]
[debug]> quit
Debugger finished with status 0
Here's the log when project is saved locally (when debugger works):
Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: /home/cb_projects/TestBreakpoint2/
Adding source dir: /home/cb_projects/TestBreakpoint2/
Adding file: /home/cb_projects/TestBreakpoint2/bin/Debug/TestBreakpoint2
Changing directory to: /home/cb_projects/TestBreakpoint2/.
Set variable: LD_LIBRARY_PATH=.:
[debug]Command-line: /bin/gdb -nx -fullname -quiet -args /home/cb_projects/TestBreakpoint2/bin/Debug/TestBreakpoint2
[debug]Working dir : /home/cb_projects/TestBreakpoint2
Starting debugger: /bin/gdb -nx -fullname -quiet -args /home/cb_projects/TestBreakpoint2/bin/Debug/TestBreakpoint2
done
[debug]Reading symbols from /home/cb_projects/TestBreakpoint2/bin/Debug/TestBreakpoint2...done.
[debug](gdb)
[debug]> set prompt >>>>>>cb_gdb:
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
[debug]>>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-80.el7
[debug]Copyright (C) 2013 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-redhat-linux-gnu".
[debug]For bug reporting instructions, please see:
[debug]<http://www.gnu.org/software/gdb/bugs/>.
[debug]>>>>>>cb_gdb:
[debug]> set confirm off
Debugger name and version: GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-80.el7
[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]Using terminal's PID as console PID 29650, TTY /dev/pts/1
[debug]Queued:[tty /dev/pts/1]
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor intel
[debug]>>>>>>cb_gdb:
[debug]> catch throw
[debug]Function "__cxa_throw" not defined.
[debug]Catchpoint 1 (throw)
[debug]>>>>>>cb_gdb:
[debug]> source /usr/share/codeblocks/scripts/stl-views-1.0.3.gdb
[debug]>>>>>>cb_gdb:
[debug]> directory /home/cb_projects/TestBreakpoint2/
[debug]Source directories searched: /home/cb_projects/TestBreakpoint2:$cdir:$cwd
[debug]>>>>>>cb_gdb:
[debug]> tty /dev/pts/1
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Starting program: /home/cb_projects/TestBreakpoint2/bin/Debug/TestBreakpoint2
[debug][Inferior 1 (process 29652) exited normally]
[debug]Missing separate debuginfos, use: debuginfo-install glibc-2.17-106.el7_2.8.x86_64 libgcc-4.8.5-4.el7.x86_64 libstdc++-4.8.5-4.el7.x86_64
[debug]>>>>>>cb_gdb:
[Inferior 1 (process 29652) exited normally]
[debug]> quit
Debugger finished with status 0
Here you go:
Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: /run/user/1000/gvfs/smb-share:server=192.168.1.5,share=public/CodeBlocksProjects/debugTest/
Adding source dir: /run/user/1000/gvfs/smb-share:server=192.168.1.5,share=public/CodeBlocksProjects/debugTest/
Adding file: /run/user/1000/gvfs/smb-share:server=192.168.1.5,share=public/CodeBlocksProjects/debugTest/bin/Debug/debugTest
Changing directory to: /run/user/1000/gvfs/smb-share:server=192.168.1.5,share=public/CodeBlocksProjects/debugTest/.
Set variable: LD_LIBRARY_PATH=.:
[debug]Command-line: /bin/gdb -nx -fullname -quiet -args /run/user/1000/gvfs/smb-share:server=192.168.1.5,share=public/CodeBlocksProjects/debugTest/bin/Debug/debugTest
[debug]Working dir : /run/user/1000/gvfs/smb-share:server=192.168.1.5,share=public/CodeBlocksProjects/debugTest
Starting debugger: /bin/gdb -nx -fullname -quiet -args /run/user/1000/gvfs/smb-share:server=192.168.1.5,share=public/CodeBlocksProjects/debugTest/bin/Debug/debugTest
done
[debug]> set prompt >>>>>>cb_gdb:
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
[debug]Reading symbols from /run/user/1000/gvfs/smb-share:server=192.168.1.5,share=public/CodeBlocksProjects/debugTest/bin/Debug/debugTest...done.
[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-80.el7
[debug]Copyright (C) 2013 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-redhat-linux-gnu".
[debug]For bug reporting instructions, please see:
[debug]<http://www.gnu.org/software/gdb/bugs/>.
[debug]>>>>>>cb_gdb:
[debug]> set confirm off
Debugger name and version: GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-80.el7
[debug]Using terminal's PID as console PID 2692, TTY /dev/pts/1
[debug]Queued:[tty /dev/pts/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 disassembly-flavor intel
[debug]>>>>>>cb_gdb:
[debug]> catch throw
[debug]Function "__cxa_throw" not defined.
[debug]Catchpoint 1 (throw)
[debug]>>>>>>cb_gdb:
[debug]> source /usr/share/codeblocks/scripts/stl-views-1.0.3.gdb
[debug]>>>>>>cb_gdb:
[debug]> directory /run/user/1000/gvfs/smb-share:server=192.168.1.5,share=public/CodeBlocksProjects/debugTest/
[debug]Source directories searched: /run/user/1000/gvfs/smb-share:/run/user/1000/gvfs/smb-share:server=192.168.1.5,share=public/CodeBlocksProjects/debugTest/server=192.168.1.5,share=public/CodeBlocksProjects/debugTest:$cdir:$cwd
[debug]>>>>>>cb_gdb:
[debug]> break "/run/user/1000/gvfs/smb-share:server=192.168.1.5,share=public/CodeBlocksProjects/debugTest/main.c:6"
[debug]No source file named /run/user/1000/gvfs/smb-share.
[debug]Breakpoint 2 ("/run/user/1000/gvfs/smb-share:server=192.168.1.5,share=public/CodeBlocksProjects/debugTest/main.c:6") pending.
[debug]>>>>>>cb_gdb:
[debug]> tty /dev/pts/1
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Starting program: /run/user/1000/gvfs/smb-share:server=192.168.1.5,share=public/CodeBlocksProjects/debugTest/bin/Debug/debugTest
[debug][Inferior 1 (process 2694) exited normally]
[debug]Missing separate debuginfos, use: debuginfo-install glibc-2.17-106.el7_2.8.x86_64 libgcc-4.8.5-4.el7.x86_64 libstdc++-4.8.5-4.el7.x86_64
[debug]>>>>>>cb_gdb:
[Inferior 1 (process 2694) exited normally]
[debug]> quit
Debugger finished with status 0
And can you show the log from command line debugger where the breakpoints really work?
But please use fuller paths for the break commands.
In general I'm really surprised you're able to get this far when using paths like this one
/run/user/1000/gvfs/smb-share:server=192.168.1.5,share=
There are so many special characters, which might confuse programs in some many different ways.
the commands for gdb appear with a single ">" in the log.
not all commands are really necessary
/bin/gdb -nx -fullname -quiet -args /run/user/1000/gvfs/smb-share:server=192.168.1.5,share=public/CodeBlocksProjects/debugTest/bin/Debug/debugTest
starts gdb (i am amazed that this works right away)
show version
shows version (not necessary)
so this should be the commands you need:
/bin/gdb -nx -fullname -quiet -args /run/user/1000/gvfs/smb-share:server=192.168.1.5,share=public/CodeBlocksProjects/debugTest/bin/Debug/debugTest
set confirm off
set breakpoint pending on
set unwindonsignal on
catch throw
directory /run/user/1000/gvfs/smb-share:server=192.168.1.5,share=public/CodeBlocksProjects/debugTest/
break "/run/user/1000/gvfs/smb-share:server=192.168.1.5,share=public/CodeBlocksProjects/debugTest/main.c:6"
run