Я не могу отлаживать коды C ++ в кодовых блоках - PullRequest
0 голосов
/ 17 февраля 2020

Не могу отлаживать в кодовых блоках. Когда я нажимаю кнопку Пуск / Продолжить. Затем следующий журнал показывается в журнале отладчика. Я настраиваю все параметры отладчика в кодовых блоках, например, при создании символа отладки. И мой путь к проекту не имеет разделенного пробела и значения, отличного от ASCII. Я использую Linux mint 18.3 и кодовые блоки версии 17.12.

Журнал отладчика:

Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target: 
Debug
Adding source dir: /home/jahid_hasan/Desktop/con/dddd/
Adding source dir: /home/jahid_hasan/Desktop/con/dddd/
Adding file: /home/jahid_hasan/Desktop/con/dddd/bin/Debug/dddd
Changing directory to: /home/jahid_hasan/Desktop/con/dddd/.
Set variable: LD_LIBRARY_PATH=.:

[debug]Command-line: /usr/bin/gdb -fullname -quiet  -args /home/jahid_hasan/Desktop/con/dddd/bin/Debug/dddd
[debug]Working dir : /home/jahid_hasan/Desktop/con/dddd

Starting debugger: /usr/bin/gdb -fullname -quiet  -args /home/jahid_hasan/Desktop/con/dddd/bin/Debug/dddd
done

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

Setting breakpoints

[debug]Using terminal's PID as console PID 7493, TTY /dev/?
[debug]Queued:[tty /dev/?]
[debug]Reading symbols from /home/jahid_hasan/Desktop/con/dddd/bin/Debug/dddd...done.
[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
[debug]Copyright (C) 2016 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-linux-gnu".
[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 (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.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 200
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor intel
[debug]>>>>>>cb_gdb:
[debug]> catch throw
[debug]Catchpoint 1 (throw)
[debug]>>>>>>cb_gdb:
[debug]> directory /home/jahid_hasan/Desktop/con/dddd/
[debug]Source directories searched: /home/jahid_hasan/Desktop/con/dddd:$cdir:$cwd
[debug]>>>>>>cb_gdb:
[debug]> break "/home/jahid_hasan/Desktop/con/dddd/main.cpp:7"
[debug]Breakpoint 2 at 0x40070e: file /home/jahid_hasan/Desktop/con/dddd/main.cpp, line 7.
[debug]>>>>>>cb_gdb:
[debug]> tty /dev/?
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]/dev/?: No such file or directory.
[debug]During startup program exited with code 1.
[debug]Starting program: /home/jahid_hasan/Desktop/con/dddd/bin/Debug/dddd 
[debug]>>>>>>cb_gdb:

During startup program exited with code 1.

[debug]> quit

Debugger finished with status 0
...