Description
Hi,
Debugging my app started window show message "HelloWorld" and abort immediately, don't stop in breakpoint.
Any suggestions to solve the problem ?
===============
Information
I just downloaded the version 1.9 of Visual Studio Code.
Install Extensioins : C/C++ Microsoft Extension, C/C++ CLang, CMake, CMake Tools, Native Debug, LLDB Debugger.
tasks.json
{
"version": "0.1.0",
"command": "gcc",
"args": ["-g", "${file}", "-o", "${file}.o"],
"problemMatcher": {
"owner": "cpp",
"fileLocation": ["relative", "${workspaceRoot}"],
"pattern": {
"regexp": "^(.):(\d+):(\d+):\s+(warning|error):\s+(.)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
}
Launch.json
{
"name": "C++ Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceRoot}/primeiro",
"stopAtEntry": false,
"cwd": "${workspaceRoot}",
"logging": { "trace": true, "traceResponse": true, "engineLogging": true },
"launchCompleteCommand": "exec-run",
"linux": {
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb"},
"osx": {
"MIMode": "lldb"
},
"windows": {
"MIMode": "gdb",
"miDebuggerPath": "C:\MinGw\bin\gdb.exe"
}
}
My PC
Linux 4.4.0-64-generic - 32 bits
#85-Ubuntu SMP Mon Feb 20 11:49:39 UTC 2017 i686 GNU/Linux
Intel(R) Pentium(R) Dual CPU T3200 @ 2.00GHz
Ubuntu 16.04.2 LTS
DEBUG CONSOLE
1: (999) LaunchOptions<LocalLaunchOptions xmlns='http://schemas.microsoft.com/vstudio/MDDDebuggerOptions/2014'
1: (1051) LaunchOptions ExePath='/home/valmadson/prg/python/projetos/vscode/primeiro'
1: (1051) LaunchOptions WorkingDirectory='/home/valmadson/prg/python/projetos/vscode'
1: (1051) LaunchOptions ExeArguments=''
1: (1051) LaunchOptions MIMode='gdb'
1: (1051) LaunchOptions MIDebuggerPath='/usr/bin/gdb'
1: (1051) LaunchOptions WaitDynamicLibLoad='false'
1: (1051) LaunchOptions>
1: (1051) LaunchOptions exec-run
1: (1060) LaunchOptions
1: (1424) TempFile=/tmp/Microsoft-MIEngine-fifo-cj9nskwd.qh0
1: (1424) TempFile=/tmp/Microsoft-MIEngine-fifo-i8gwg4if.7k4
1: (1424) TempFile=/tmp/Microsoft-MIEngine-fifo-lm4odiib.c7c
1: (1163) LaunchOptions<LocalLaunchOptions xmlns='http://schemas.microsoft.com/vstudio/MDDDebuggerOptions/2014'
1: (1229) LaunchOptions ExePath='/home/valmadson/prg/python/projetos/vscode/primeiro'
1: (1229) LaunchOptions WorkingDirectory='/home/valmadson/prg/python/projetos/vscode'
1: (1229) LaunchOptions ExeArguments=''
1: (1229) LaunchOptions MIMode='gdb'
1: (1229) LaunchOptions MIDebuggerPath='/usr/bin/gdb'
1: (1229) LaunchOptions WaitDynamicLibLoad='false'
1: (1229) LaunchOptions>
1: (1229) LaunchOptions exec-run
1: (1230) LaunchOptions
1: (1809) ShellPid=32093
1: (1920) DebuggerPid=32096
1: (1778) TempFile=/tmp/Microsoft-MIEngine-fifo-grst56nf.b0c
1: (1778) TempFile=/tmp/Microsoft-MIEngine-fifo-2mcd4s4u.f3v
1: (1778) TempFile=/tmp/Microsoft-MIEngine-fifo-lxejqav3.a75
1: (2058) ->=thread-group-added,id="i1"
1: (2070) ->"GNU gdb (Ubuntu 7.11.1-0ubuntu116.04) 7.11.1\n"
1: (2070) ->"Copyright (C) 2016 Free Software Foundation, Inc.\n""License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type "show copying"\nand "show warranty" for details.\n"
1: (2070) ->
1: (2070) ->"This GDB was configured as "i686-linux-gnu".\nType "show configuration" for configuration details.""\nFor bug reporting instructions, please see:\n"
1: (2071) ->
1: (2071) ->"http://www.gnu.org/software/gdb/bugs/.\n""Find the GDB manual and other documentation resources online at:\nhttp://www.gnu.org/software/gdb/documentation/.\n"
1: (2071) ->
1: (2071) ->"For help, type "help".\n""Type "apropos word" to search for commands related to "word".\n"
1: (2071) ->
1: (2071) ->(gdb)
1: (2088) <-1001-gdb-set target-async on
1: (2089) ->1001^done
1: (2089) ->(gdb)
1: (2094) 1001: elapsed time 13
1: (2153) <-1002-gdb-set solib-search-path /home/valmadson/prg/python/projetos/vscode:
1: (2154) ->1002^done
1: (2155) ->(gdb)
1: (2159) 1002: elapsed time 6
1: (2159) <-1003-gdb-set stop-on-solib-events 1
1: (2160) ->1003^done
1: (2160) ->(gdb)
1: (2164) 1003: elapsed time 4
1: (2164) <-1004-environment-cd /home/valmadson/prg/python/projetos/vscode
1: (2165) ->1004^done
1: (2165) ->(gdb)
1: (2165) 1004: elapsed time 0
1: (2165) <-1005-file-exec-and-symbols /home/valmadson/prg/python/projetos/vscode/primeiro
1: (2167) ->1005^done
1: (2167) ->(gdb)
1: (2167) 1005: elapsed time 1
1: (2171) <-1006-interpreter-exec console "show architecture"
1: (2171) ->"The target architecture is set automatically (currently i386)\n""GNU gdb (Ubuntu 7.11.1-0ubuntu1
1: (2171) ->1006^done
1: (2171) ->(gdb)
1: (2182) 1006: elapsed time 11
1: (2202) <-1007-break-insert main
1: (2203) ->1007^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0804895a",at="<main+15>",thread-groups=["i1"],times="0",original-location="main"}
1: (2203) ->(gdb)
1: (2232) 1007: elapsed time 30
E output: {"category":"telemetry","output":"VS/Diagnostics/Debugger/Launch","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"14.0.40118.1","VS.Diagnostics.Debugger.HostVersion":"1.0.30118.2","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.Launch.Duration":1781,"VS.Diagnostics.Debugger.Launch.IsCoreDump":false,"VS.Diagnostics.Debugger.VisualizerFileUsed":false,"VS.Diagnostics.Debugger.SourceFileMappings":0},"type":"output"}
R: {"success":true,"message":null,"request_seq":2,"command":"launch","body":null,"running":false,"refs":null,"seq":0,"type":"response"}
E initialized: {"type":"initialized"}
1: (2174) ShellPid=32103
C setBreakpoints: {"source":{"path":"/home/valmadson/prg/python/projetos/vscode/testcurso.py","name":"testcurso.py"},"lines":[3],"breakpoints":[{"line":3}],"sourceModified":false}
1: (2207) DebuggerPid=32106
1: (2440) ->=thread-group-added,id="i1"
1: (2447) ->16.04) 7.11.1\n""Copyright (C) 2016 Free Software Foundation, Inc.\n"
1: (2451) ->
1: (2451) ->"License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type "show copying"\nand "show warranty" for details.\n""This GDB was configured as "i686-linux-gnu".\nType "show configuration" for configuration details."
1: (2451) ->
1: (2451) ->"\nFor bug reporting instructions, please see:\n""http://www.gnu.org/software/gdb/bugs/.\n"
1: (2451) ->
1: (2451) ->"Find the GDB manual and other documentation resources online at:\nhttp://www.gnu.org/software/gdb/documentation/.\n""For help, type "help".\n"
1: (2451) ->
1: (2451) ->"Type "apropos word" to search for commands related to "word".\n""The target architecture is set automatically (currently i386)\n"
1: (2451) ->(gdb)
1: (2468) <-1001-gdb-set target-async on
1: (2469) ->1001^done
1: (2470) ->(gdb)
1: (2475) 1001: elapsed time 8
1: (2681) <-1008-break-insert -f testcurso.py:3
1: (2682) ->&"No symbol table is loaded. Use the "file" command.\n"
1: (2682) ->1008^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="",pending="testcurso.py:3",times="0",original-location="testcurso.py:3"}
1: (2682) ->(gdb)
1: (2493) <-1002-gdb-set solib-search-path /home/valmadson/prg/python/projetos/vscode:
1: (2493) ->1002^done
1: (2493) ->(gdb)
1: (2502) 1002: elapsed time 9
1: (2502) <-1003-gdb-set stop-on-solib-events 1
1: (2503) ->1003^done
1: (2503) ->(gdb)
1: (2503) 1003: elapsed time 0
1: (2504) <-1004-environment-cd /home/valmadson/prg/python/projetos/vscode
1: (2695) 1008: elapsed time 13
1: (2504) ->1004^done
1: (2504) ->(gdb)
1: (2504) 1004: elapsed time 0
1: (2504) <-1005-file-exec-and-symbols /home/valmadson/prg/python/projetos/vscode/primeiro
1: (2506) ->1005^done
1: (2507) ->(gdb)
1: (2507) 1005: elapsed time 2
1: (2511) <-1006-interpreter-exec console "show architecture"
1: (2512) ->
1: (2512) ->1006^done
1: (2512) ->(gdb)
1: (2514) 1006: elapsed time 2
1: (2529) <-1007-break-insert main
1: (2530) ->1007^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0804895a",at="<main+15>",thread-groups=["i1"],times="0",original-location="main"}
1: (2530) ->(gdb)
1: (2555) 1007: elapsed time 25
R: {"success":true,"message":null,"request_seq":3,"command":"setBreakpoints","body":{"breakpoints":[{"id":1,"verified":true,"line":3,"message":null}]},"running":false,"refs":null,"seq":0,"type":"response"}
E breakpoint: {"reason":"changed","breakpoint":{"id":1,"verified":false,"line":3,"message":"Module containing this breakpoint has not yet loaded or the breakpoint address could not be obtained."},"type":"breakpoint"}
C setBreakpoints: {"source":{"path":"/home/valmadson/prg/python/projetos/vscode/hello.cc","name":"hello.cc"},"lines":[5],"breakpoints":[{"line":5}],"sourceModified":false}
1: (2764) <-1009-break-insert -f hello.cc:5
1: (2764) ->&"No symbol table is loaded. Use the "file" command.\n"
1: (2764) ->1009^done,bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="",pending="hello.cc:5",times="0",original-location="hello.cc:5"}
1: (2765) ->(gdb)
1: (2765) 1009: elapsed time 1
R: {"success":true,"message":null,"request_seq":4,"command":"setBreakpoints","body":{"breakpoints":[{"id":2,"verified":true,"line":5,"message":null}]},"running":false,"refs":null,"seq":0,"type":"response"}
E breakpoint: {"reason":"changed","breakpoint":{"id":2,"verified":false,"line":5,"message":"Module containing this breakpoint has not yet loaded or the breakpoint address could not be obtained."},"type":"breakpoint"}
C setBreakpoints: {"source":{"path":"/home/valmadson/prg/python/projetos/vscode/primeiro.cpp","name":"primeiro.cpp"},"lines":[6],"breakpoints":[{"line":6}],"sourceModified":false}
1: (2766) <-1010-break-insert -f primeiro.cpp:6
1: (2767) ->&"No symbol table is loaded. Use the "file" command.\n"
1: (2767) ->1010^done,bkpt={number="4",type="breakpoint",disp="keep",enabled="y",addr="",pending="primeiro.cpp:6",times="0",original-location="primeiro.cpp:6"}
1: (2767) ->(gdb)
1: (2767) 1010: elapsed time 1
R: {"success":true,"message":null,"request_seq":5,"command":"setBreakpoints","body":{"breakpoints":[{"id":3,"verified":true,"line":6,"message":null}]},"running":false,"refs":null,"seq":0,"type":"response"}
E breakpoint: {"reason":"changed","breakpoint":{"id":3,"verified":false,"line":6,"message":"Module containing this breakpoint has not yet loaded or the breakpoint address could not be obtained."},"type":"breakpoint"}
C setFunctionBreakpoints: {"breakpoints":[]}
R: {"success":true,"message":null,"request_seq":6,"command":"setFunctionBreakpoints","body":{"breakpoints":[]},"running":false,"refs":null,"seq":0,"type":"response"}
E output: {"category":"telemetry","output":"VS/Diagnostics/Debugger/Launch","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"14.0.40118.1","VS.Diagnostics.Debugger.HostVersion":"1.0.30118.2","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.Launch.Duration":2117,"VS.Diagnostics.Debugger.Launch.IsCoreDump":false,"VS.Diagnostics.Debugger.VisualizerFileUsed":false,"VS.Diagnostics.Debugger.SourceFileMappings":0},"type":"output"}
R: {"success":true,"message":null,"request_seq":2,"command":"launch","body":null,"running":false,"refs":null,"seq":0,"type":"response"}
E initialized: {"type":"initialized"}
C configurationDone: null
R: {"success":true,"message":null,"request_seq":7,"command":"configurationDone","body":null,"running":false,"refs":null,"seq":0,"type":"response"}
E output: {"category":"stdout","output":"=thread-group-added,id="i1"\nGNU gdb (Ubuntu 7.11.1-0ubuntu116.04) 7.11.1\nCopyright (C) 2016 Free Software Foundation, Inc.\nLicense GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type "show copying"\nand "show warranty" for details.\nThis GDB was configured as "i686-linux-gnu".\nType "show configuration" for configuration details.\nFor bug reporting instructions, please see:\nhttp://www.gnu.org/software/gdb/bugs/.\nFind the GDB manual and other documentation resources online at:\nhttp://www.gnu.org/software/gdb/documentation/.\nFor help, type "help".\nType "apropos word" to search for commands related to "word".\n","data":null,"type":"output"}16.04) 7.11.1
=thread-group-added,id="i1"
GNU gdb (Ubuntu 7.11.1-0ubuntu1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word".
C threads: null
1: (2868) <-1011-exec-run
1: (2869) ->=thread-group-started,id="i1",pid="32114"
1: (2869) ->=thread-created,id="1",group-id="i1"
1: (2879) ->=library-loaded,id="/lib/ld-linux.so.2",target-name="/lib/ld-linux.so.2",host-name="/lib/ld-linux.so.2",symbols-loaded="0",thread-group="i1"
R: {"success":true,"message":null,"request_seq":8,"command":"threads","body":{"threads":[]},"running":false,"refs":null,"seq":0,"type":"response"}
1: (2917) ->1011^running
1: (2917) ->*running,thread-id="all"
1: (2918) ->(gdb)
1: (2918) 1011: elapsed time 49
1: (2919) ->"Stopped due to shared library event (no libraries added or removed)\n""From To Syms Read Shared Object Library\n"
1: (2919) ->*stopped,reason="solib-event",thread-id="1",stopped-threads="all",core="0"
E output: {"category":"stdout","output":"Stopped due to shared library event (no libraries added or removed)\n","data":null,"type":"output"}
Stopped due to shared library event (no libraries added or removed)
1: (2933) <-1012-interpreter-exec console "shell echo -e \\033c 1>&2"
1: (2944) ->1012^done
1: (2944) ->(gdb)
1: (2944) 1012: elapsed time 10
1: (2944) <-1013-gdb-set stop-on-solib-events 0
1: (2947) ->1013^done
1: (2947) ->(gdb)
1: (2948) 1013: elapsed time 3
C setBreakpoints: {"source":{"path":"/home/valmadson/prg/python/projetos/vscode/testcurso.py","name":"testcurso.py"},"lines":[3],"breakpoints":[{"line":3}],"sourceModified":false}
1: (2966) <-1014-break-info 2
1: (2968) ->1014^done,BreakpointTable={nr_rows="1",nr_cols="6",hdr=[{width="7",alignment="-1",col_name="number",colhdr="Num"},{width="14",alignment="-1",col_name="type",colhdr="Type"},{width="4",alignment="-1",col_name="disp",colhdr="Disp"},{width="3",alignment="-1",col_name="enabled",colhdr="Enb"},{width="10",alignment="-1",col_name="addr",colhdr="Address"},{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="",pending="testcurso.py:3",times="0",original-location="testcurso.py:3"}]}
1: (2968) ->(gdb)
1: (2974) 1014: elapsed time 7
1: (2981) <-1015-break-info 3
1: (2983) ->1015^done,BreakpointTable={nr_rows="1",nr_cols="6",hdr=[{width="7",alignment="-1",col_name="number",colhdr="Num"},{width="14",alignment="-1",col_name="type",colhdr="Type"},{width="4",alignment="-1",col_name="disp",colhdr="Disp"},{width="3",alignment="-1",col_name="enabled",colhdr="Enb"},{width="10",alignment="-1",col_name="addr",colhdr="Address"},{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="",pending="hello.cc:5",times="0",original-location="hello.cc:5"}]}
1: (2983) ->(gdb)
1: (2984) 1015: elapsed time 2
1: (2985) <-1016-break-info 4
1: (2986) ->1016^done,BreakpointTable={nr_rows="1",nr_cols="6",hdr=[{width="7",alignment="-1",col_name="number",colhdr="Num"},{width="14",alignment="-1",col_name="type",colhdr="Type"},{width="4",alignment="-1",col_name="disp",colhdr="Disp"},{width="3",alignment="-1",col_name="enabled",colhdr="Enb"},{width="10",alignment="-1",col_name="addr",colhdr="Address"},{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="4",type="breakpoint",disp="keep",enabled="y",addr="",pending="primeiro.cpp:6",times="0",original-location="primeiro.cpp:6"}]}
1: (2987) ->(gdb)
1: (2988) 1016: elapsed time 2
1: (2992) <-1017-interpreter-exec console "info sharedlibrary"
1: (2993) ->
1: (2994) ->"0xb7fdb860 0xb7ff461d Yes /lib/ld-linux.so.2\n"16.04) 7.11.1\nCopyright (C) 2016 Free Software Foundation, Inc.\nLicense GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type "show copying"\nand "show warranty" for details.\nThis GDB was configured as "i686-linux-gnu".\nType "show configuration" for configuration details.\nFor bug reporting instructions, please see:\nhttp://www.gnu.org/software/gdb/bugs/.\nFind the GDB manual and other documentation resources online at:\nhttp://www.gnu.org/software/gdb/documentation/.\nFor help, type "help".\nType "apropos word" to search for commands related to "word".\n","data":null,"type":"output"}
1: (2994) ->1017^done
1: (2994) ->(gdb)
1: (2997) 1017: elapsed time 5
E output: {"category":"console","output":"Loaded '/lib/ld-linux.so.2'. Symbols loaded.\n","data":null,"type":"output"}
Loaded '/lib/ld-linux.so.2'. Symbols loaded.
1: (3006) <--exec-continue
1: (3015) ->^running
1: (3015) ->*running,thread-id="all"
1: (2818) <-1008-break-insert -f testcurso.py:3
1: (2819) ->&"No symbol table is loaded. Use the "file" command.\n"
1: (2819) ->1008^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="",pending="testcurso.py:3",times="0",original-location="testcurso.py:3"}
1: (2819) ->(gdb)
1: (3020) ->(gdb)
1: (3021) ->=library-loaded,id="/usr/lib/i386-linux-gnu/libstdc++.so.6",target-name="/usr/lib/i386-linux-gnu/libstdc++.so.6",host-name="/usr/lib/i386-linux-gnu/libstdc++.so.6",symbols-loaded="0",thread-group="i1"
1: (3021) ->=library-loaded,id="/lib/i386-linux-gnu/libgcc_s.so.1",target-name="/lib/i386-linux-gnu/libgcc_s.so.1",host-name="/lib/i386-linux-gnu/libgcc_s.so.1",symbols-loaded="0",thread-group="i1"
1: (3021) ->=library-loaded,id="/lib/i386-linux-gnu/libc.so.6",target-name="/lib/i386-linux-gnu/libc.so.6",host-name="/lib/i386-linux-gnu/libc.so.6",symbols-loaded="0",thread-group="i1"
1: (3021) ->=library-loaded,id="/lib/i386-linux-gnu/libm.so.6",target-name="/lib/i386-linux-gnu/libm.so.6",host-name="/lib/i386-linux-gnu/libm.so.6",symbols-loaded="0",thread-group="i1"
1: (2823) 1008: elapsed time 4
R: {"success":true,"message":null,"request_seq":3,"command":"setBreakpoints","body":{"breakpoints":[{"id":1,"verified":true,"line":3,"message":null}]},"running":false,"refs":null,"seq":0,"type":"response"}
E breakpoint: {"reason":"changed","breakpoint":{"id":1,"verified":false,"line":3,"message":"Module containing this breakpoint has not yet loaded or the breakpoint address could not be obtained."},"type":"breakpoint"}
C setBreakpoints: {"source":{"path":"/home/valmadson/prg/python/projetos/vscode/hello.cc","name":"hello.cc"},"lines":[5],"breakpoints":[{"line":5}],"sourceModified":false}
1: (2853) <-1009-break-insert -f hello.cc:5
1: (2854) ->&"No symbol table is loaded. Use the "file" command.\n"
1: (2854) ->1009^done,bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="",pending="hello.cc:5",times="0",original-location="hello.cc:5"}
1: (2854) ->(gdb)
1: (2854) 1009: elapsed time 0
R: {"success":true,"message":null,"request_seq":4,"command":"setBreakpoints","body":{"breakpoints":[{"id":2,"verified":true,"line":5,"message":null}]},"running":false,"refs":null,"seq":0,"type":"response"}
E breakpoint: {"reason":"changed","breakpoint":{"id":2,"verified":false,"line":5,"message":"Module containing this breakpoint has not yet loaded or the breakpoint address could not be obtained."},"type":"breakpoint"}
C setBreakpoints: {"source":{"path":"/home/valmadson/prg/python/projetos/vscode/primeiro.cpp","name":"primeiro.cpp"},"lines":[6],"breakpoints":[{"line":6}],"sourceModified":false}
1: (2855) <-1010-break-insert -f primeiro.cpp:6
1: (2856) ->&"No symbol table is loaded. Use the "file" command.\n"
1: (2856) ->1010^done,bkpt={number="4",type="breakpoint",disp="keep",enabled="y",addr="",pending="primeiro.cpp:6",times="0",original-location="primeiro.cpp:6"}
1: (2856) ->(gdb)
1: (2857) 1010: elapsed time 1
R: {"success":true,"message":null,"request_seq":5,"command":"setBreakpoints","body":{"breakpoints":[{"id":3,"verified":true,"line":6,"message":null}]},"running":false,"refs":null,"seq":0,"type":"response"}
E breakpoint: {"reason":"changed","breakpoint":{"id":3,"verified":false,"line":6,"message":"Module containing this breakpoint has not yet loaded or the breakpoint address could not be obtained."},"type":"breakpoint"}
C setFunctionBreakpoints: {"breakpoints":[]}
R: {"success":true,"message":null,"request_seq":6,"command":"setFunctionBreakpoints","body":{"breakpoints":[]},"running":false,"refs":null,"seq":0,"type":"response"}
C configurationDone: null
E output: {"category":"stdout","output":"=thread-group-added,id="i1"\nGNU gdb (Ubuntu 7.11.1-0ubuntu1
=thread-group-added,id="i1"
GNU gdb (Ubuntu 7.11.1-0ubuntu116.04) 7.11.1"Stopped due to shared library event (no libraries added or removed)\n"
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word".
R: {"success":true,"message":null,"request_seq":7,"command":"configurationDone","body":null,"running":false,"refs":null,"seq":0,"type":"response"}
1: (2964) <-1011-exec-run
1: (2965) ->=thread-group-started,id="i1",pid="32121"
1: (2965) ->=thread-created,id="1",group-id="i1"
1: (2974) ->=library-loaded,id="/lib/ld-linux.so.2",target-name="/lib/ld-linux.so.2",host-name="/lib/ld-linux.so.2",symbols-loaded="0",thread-group="i1"
C threads: null
R: {"success":true,"message":null,"request_seq":8,"command":"threads","body":{"threads":[]},"running":false,"refs":null,"seq":0,"type":"response"}
1: (3027) ->1011^running
1: (3028) ->*running,thread-id="all"
1: (3031) ->(gdb)
1: (3031) ->
1: (3031) ->*stopped,reason="solib-event",thread-id="1",stopped-threads="all",core="1"
1: (3037) 1011: elapsed time 72
E output: {"category":"stdout","output":"Stopped due to shared library event (no libraries added or removed)\n","data":null,"type":"output"}
Stopped due to shared library event (no libraries added or removed)
1: (3070) <-1012-interpreter-exec console "shell echo -e \\033c 1>&2"
1: (3074) ->1012^done
1: (3074) ->(gdb)
1: (3076) 1012: elapsed time 5
1: (3076) <-1013-gdb-set stop-on-solib-events 0
1: (3077) ->1013^done
1: (3077) ->(gdb)
1: (3077) 1013: elapsed time 1
1: (3104) <-1014-break-info 2
1: (3104) ->1014^done,BreakpointTable={nr_rows="1",nr_cols="6",hdr=[{width="7",alignment="-1",col_name="number",colhdr="Num"},{width="14",alignment="-1",col_name="type",colhdr="Type"},{width="4",alignment="-1",col_name="disp",colhdr="Disp"},{width="3",alignment="-1",col_name="enabled",colhdr="Enb"},{width="10",alignment="-1",col_name="addr",colhdr="Address"},{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="",pending="testcurso.py:3",times="0",original-location="testcurso.py:3"}]}
1: (3105) ->(gdb)
1: (3122) 1014: elapsed time 18
1: (3136) <-1015-break-info 3
1: (3136) ->1015^done,BreakpointTable={nr_rows="1",nr_cols="6",hdr=[{width="7",alignment="-1",col_name="number",colhdr="Num"},{width="14",alignment="-1",col_name="type",colhdr="Type"},{width="4",alignment="-1",col_name="disp",colhdr="Disp"},{width="3",alignment="-1",col_name="enabled",colhdr="Enb"},{width="10",alignment="-1",col_name="addr",colhdr="Address"},{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="",pending="hello.cc:5",times="0",original-location="hello.cc:5"}]}
1: (3136) ->(gdb)
1: (3137) 1015: elapsed time 1
1: (3137) <-1016-break-info 4
1: (3137) ->1016^done,BreakpointTable={nr_rows="1",nr_cols="6",hdr=[{width="7",alignment="-1",col_name="number",colhdr="Num"},{width="14",alignment="-1",col_name="type",colhdr="Type"},{width="4",alignment="-1",col_name="disp",colhdr="Disp"},{width="3",alignment="-1",col_name="enabled",colhdr="Enb"},{width="10",alignment="-1",col_name="addr",colhdr="Address"},{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="4",type="breakpoint",disp="keep",enabled="y",addr="",pending="primeiro.cpp:6",times="0",original-location="primeiro.cpp:6"}]}
1: (3138) ->(gdb)
1: (3140) 1016: elapsed time 3
1: (3145) <-1017-interpreter-exec console "info sharedlibrary"
1: (3146) ->"From To Syms Read Shared Object Library\n""0xb7fdb860 0xb7ff461d Yes /lib/ld-linux.so.2\n"
1: (3146) ->
1: (3146) ->1017^done
1: (3146) ->(gdb)
1: (3147) 1017: elapsed time 2
E output: {"category":"console","output":"Loaded '/lib/ld-linux.so.2'. Symbols loaded.\n","data":null,"type":"output"}
Loaded '/lib/ld-linux.so.2'. Symbols loaded.
1: (3171) <--exec-continue
1: (3179) ->^running
1: (3179) ->*running,thread-id="all"
1: (3179) ->(gdb)
1: (3179) ->=library-loaded,id="/usr/lib/i386-linux-gnu/libstdc++.so.6",target-name="/usr/lib/i386-linux-gnu/libstdc++.so.6",host-name="/usr/lib/i386-linux-gnu/libstdc++.so.6",symbols-loaded="0",thread-group="i1"
1: (3180) ->=library-loaded,id="/lib/i386-linux-gnu/libgcc_s.so.1",target-name="/lib/i386-linux-gnu/libgcc_s.so.1",host-name="/lib/i386-linux-gnu/libgcc_s.so.1",symbols-loaded="0",thread-group="i1"
1: (3180) ->=library-loaded,id="/lib/i386-linux-gnu/libc.so.6",target-name="/lib/i386-linux-gnu/libc.so.6",host-name="/lib/i386-linux-gnu/libc.so.6",symbols-loaded="0",thread-group="i1"
1: (3180) ->=library-loaded,id="/lib/i386-linux-gnu/libm.so.6",target-name="/lib/i386-linux-gnu/libm.so.6",host-name="/lib/i386-linux-gnu/libm.so.6",symbols-loaded="0",thread-group="i1"
1: (3541) ->=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0804895a",at="<main+15>",thread-groups=["i1"],times="1",original-location="main"}
1: (3543) ->"\n""Breakpoint 1, 0x0804895a in main ()\n"
1: (3545) ->
1: (3545) ->*stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x0804895a",func="main",args=[]},thread-id="1",stopped-threads="all",core="0"
E output: {"category":"stdout","output":"\n","data":null,"type":"output"}
E output: {"category":"stdout","output":"Breakpoint 1, 0x0804895a in main ()\n","data":null,"type":"output"}
Breakpoint 1, 0x0804895a in main ()
1: (3571) <-1018-thread-info
1: (3573) ->1018^done,threads=[{id="1",target-id="process 32114",name="primeiro",frame={level="0",addr="0x0804895a",func="main",args=[]},state="stopped",core="0"}],current-thread-id="1"
1: (3573) ->(gdb)
1: (3587) 1018: elapsed time 15
1: (3610) <-1019-stack-list-frames 0 1000
1: (3611) ->1019^done,stack=[frame={level="0",addr="0x0804895a",func="main"}]
1: (3611) ->(gdb)
1: (3616) 1019: elapsed time 5
E thread: {"reason":"started","threadId":32114,"type":"thread"}
C threads: null
R: {"success":true,"message":null,"request_seq":9,"command":"threads","body":{"threads":[{"id":32114,"name":"primeiro"}]},"running":false,"refs":null,"seq":0,"type":"response"}
1: (3639) <--exec-continue
1: (3643) ->^running
1: (3644) ->*running,thread-id="all"
1: (3644) ->(gdb)
1: (3644) ->"[Inferior 1 (process 32114) exited normally]\n""\n"
1: (3644) ->=thread-exited,id="1",group-id="i1"
1: (3644) ->=thread-group-exited,id="i1",exit-code="0"
1: (3644) ->*stopped,reason="exited-normally"
E output: {"category":"stdout","output":"[Inferior 1 (process 32114) exited normally]\n","data":null,"type":"output"}
[Inferior 1 (process 32114) exited normally]
1: (3657) <--gdb-exit
1: (3657) ->^exit
E output: {"category":"console","output":"The program '/home/valmadson/prg/python/projetos/vscode/primeiro' has exited with code 0 (0x00000000).\r\n\n","data":null,"type":"output"}
The program '/home/valmadson/prg/python/projetos/vscode/primeiro' has exited with code 0 (0x00000000).
E exited: {"exitCode":0,"type":"exited"}
E terminated: {"type":"terminated"}
E output: {"category":"telemetry","output":"VS/Diagnostics/Debugger/DebugCompleted","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"14.0.40118.1","VS.Diagnostics.Debugger.HostVersion":"1.0.30118.2","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.DebugCompleted.BreakCounter":0},"type":"output"}
C disconnect: {"restart":false}
R: {"success":true,"message":null,"request_seq":10,"command":"disconnect","body":null,"running":false,"refs":null,"seq":0,"type":"response"}
1: (3735) ->=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0804895a",at="<main+15>",thread-groups=["i1"],times="1",original-location="main"}
1: (3738) ->
1: (3738) ->"Breakpoint 1, 0x0804895a in main ()\n""[Inferior 1 (process 32121) exited normally]\n"
1: (3738) ->*stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x0804895a",func="main",args=[]},thread-id="1",stopped-threads="all",core="1"
E output: {"category":"stdout","output":"\n","data":null,"type":"output"}
E output: {"category":"stdout","output":"Breakpoint 1, 0x0804895a in main ()\n","data":null,"type":"output"}
Breakpoint 1, 0x0804895a in main ()
1: (3765) <-1018-thread-info
1: (3766) ->1018^done,threads=[{id="1",target-id="process 32121",name="primeiro",frame={level="0",addr="0x0804895a",func="main",args=[]},state="stopped",core="1"}],current-thread-id="1"
1: (3766) ->(gdb)
1: (3792) 1018: elapsed time 26
1: (3821) <-1019-stack-list-frames 0 1000
1: (3822) ->1019^done,stack=[frame={level="0",addr="0x0804895a",func="main"}]
1: (3822) ->(gdb)
1: (3827) 1019: elapsed time 6
E thread: {"reason":"started","threadId":32121,"type":"thread"}
C threads: null
R: {"success":true,"message":null,"request_seq":9,"command":"threads","body":{"threads":[{"id":32121,"name":"primeiro"}]},"running":false,"refs":null,"seq":0,"type":"response"}
1: (3859) <--exec-continue
1: (3860) ->^running
1: (3860) ->*running,thread-id="all"
1: (3860) ->(gdb)
1: (3862) ->
1: (3862) ->=thread-exited,id="1",group-id="i1"
1: (3862) ->=thread-group-exited,id="i1",exit-code="0"
1: (3862) ->*stopped,reason="exited-normally"
E output: {"category":"stdout","output":"[Inferior 1 (process 32121) exited normally]\n","data":null,"type":"output"}
[Inferior 1 (process 32121) exited normally]
1: (3869) <--gdb-exit
1: (3871) ->^exit
E output: {"category":"console","output":"The program '/home/valmadson/prg/python/projetos/vscode/primeiro' has exited with code 0 (0x00000000).\r\n\n","data":null,"type":"output"}
The program '/home/valmadson/prg/python/projetos/vscode/primeiro' has exited with code 0 (0x00000000).
E exited: {"exitCode":0,"type":"exited"}
E terminated: {"type":"terminated"}
E output: {"category":"telemetry","output":"VS/Diagnostics/Debugger/DebugCompleted","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"14.0.40118.1","VS.Diagnostics.Debugger.HostVersion":"1.0.30118.2","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.DebugCompleted.BreakCounter":0},"type":"output"}
C disconnect: {"restart":false}
R: {"success":true,"message":null,"request_seq":10,"command":"disconnect","body":null,"running":false,"refs":null,"seq":0,"type":"response"}