Advertisement
hakonhagland

vscode-debug-console-output

Feb 16th, 2024
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.75 KB | None | 0 0
  1. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (139) LaunchOptions{\"name\":\"Simple C program\",\"type\":\"cppdbg\",\"request\":\"launch\",\"cwd\":\"/home/hakon/opm\",\"program\":\"/home/hakon/opm/my_test\",\"args\":[],\"stopAtEntry\":true,\"MIMode\":\"gdb\",\"miDebuggerPath\":\"/usr/bin/gdb\",\"launchCompleteCommand\":\"None\",\"logging\":{\"trace\":true,\"traceResponse\":true,\"engineLogging\":true},\"__configurationTarget\":6,\"__sessionId\":\"3dc4587e-c73a-4a8f-9be2-b7e8cf8eef5e\"}\n"},"seq":2}
  2. 1: (139) LaunchOptions{"name":"Simple C program","type":"cppdbg","request":"launch","cwd":"/home/hakon/opm","program":"/home/hakon/opm/my_test","args":[],"stopAtEntry":true,"MIMode":"gdb","miDebuggerPath":"/usr/bin/gdb","launchCompleteCommand":"None","logging":{"trace":true,"traceResponse":true,"engineLogging":true},"__configurationTarget":6,"__sessionId":"3dc4587e-c73a-4a8f-9be2-b7e8cf8eef5e"}
  3. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (196) DbgCmd:echo $$ > /tmp/Microsoft-MIEngine-Pid-k5cipaup.2zq ; cd \"/home/hakon/opm\" ; DbgTerm=`tty` ; set -o monitor ; trap 'rm \"/tmp/Microsoft-MIEngine-In-k0uppmus.4bi\" \"/tmp/Microsoft-MIEngine-Out-nhuthlod.evb\" \"/tmp/Microsoft-MIEngine-Pid-k5cipaup.2zq\" \"/tmp/Microsoft-MIEngine-Cmd-mv1oy1ls.hi0\"' EXIT ; \"/usr/bin/gdb\" --interpreter=mi --tty=$DbgTerm < \"/tmp/Microsoft-MIEngine-In-k0uppmus.4bi\" > \"/tmp/Microsoft-MIEngine-Out-nhuthlod.evb\" & clear; pid=$! ; echo $pid > \"/tmp/Microsoft-MIEngine-Pid-k5cipaup.2zq\" ; wait $pid; \n"},"seq":4}
  4. 1: (196) DbgCmd:echo $$ > /tmp/Microsoft-MIEngine-Pid-k5cipaup.2zq ; cd "/home/hakon/opm" ; DbgTerm=`tty` ; set -o monitor ; trap 'rm "/tmp/Microsoft-MIEngine-In-k0uppmus.4bi" "/tmp/Microsoft-MIEngine-Out-nhuthlod.evb" "/tmp/Microsoft-MIEngine-Pid-k5cipaup.2zq" "/tmp/Microsoft-MIEngine-Cmd-mv1oy1ls.hi0"' EXIT ; "/usr/bin/gdb" --interpreter=mi --tty=$DbgTerm < "/tmp/Microsoft-MIEngine-In-k0uppmus.4bi" > "/tmp/Microsoft-MIEngine-Out-nhuthlod.evb" & clear; pid=$! ; echo $pid > "/tmp/Microsoft-MIEngine-Pid-k5cipaup.2zq" ; wait $pid;
  5. --> C (runInTerminal-6): {"type":"request","command":"runInTerminal","arguments":{"kind":"integrated","title":"cppdbg: my_test","cwd":"","args":["/bin/sh","/tmp/Microsoft-MIEngine-Cmd-mv1oy1ls.hi0"],"env":{}},"seq":6}
  6. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (211) Wait for connection completion.\n"},"seq":8}
  7. 1: (211) Wait for connection completion.
  8. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (458) ->=thread-group-added,id=\"i1\"\n"},"seq":10}
  9. 1: (458) ->=thread-group-added,id="i1"
  10. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (460) ->~\"GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git\\n\"\n"},"seq":12}
  11. 1: (460) ->~"GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git\n"
  12. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (460) ->~\"Copyright (C) 2021 Free Software Foundation, Inc.\\n\"\n"},"seq":14}
  13. 1: (460) ->~"Copyright (C) 2021 Free Software Foundation, Inc.\n"
  14. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (460) ->~\"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.\"\n"},"seq":16}
  15. 1: (460) ->~"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."
  16. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (460) ->~\"\\nType \\\"show copying\\\" and \\\"show warranty\\\" for details.\\n\"\n"},"seq":18}
  17. 1: (460) ->~"\nType \"show copying\" and \"show warranty\" for details.\n"
  18. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (461) ->~\"This GDB was configured as \\\"x86_64-linux-gnu\\\".\\n\"\n"},"seq":20}
  19. 1: (461) ->~"This GDB was configured as \"x86_64-linux-gnu\".\n"
  20. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (461) ->~\"Type \\\"show configuration\\\" for configuration details.\\n\"\n"},"seq":22}
  21. 1: (461) ->~"Type \"show configuration\" for configuration details.\n"
  22. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (461) ->~\"For bug reporting instructions, please see:\\n\"\n"},"seq":24}
  23. 1: (461) ->~"For bug reporting instructions, please see:\n"
  24. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (471) ->~\"<https://www.gnu.org/software/gdb/bugs/>.\\n\"\n"},"seq":26}
  25. 1: (471) ->~"<https://www.gnu.org/software/gdb/bugs/>.\n"
  26. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (471) ->~\"Find the GDB manual and other documentation resources online at:\\n <http://www.gnu.org/software/gdb/documentation/>.\"\n"},"seq":28}
  27. 1: (471) ->~"Find the GDB manual and other documentation resources online at:\n <http://www.gnu.org/software/gdb/documentation/>."
  28. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (471) ->~\"\\n\\n\"\n"},"seq":30}
  29. 1: (471) ->~"\n\n"
  30. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (471) ->~\"For help, type \\\"help\\\".\\n\"\n"},"seq":32}
  31. 1: (471) ->~"For help, type \"help\".\n"
  32. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (471) ->~\"Type \\\"apropos word\\\" to search for commands related to \\\"word\\\".\\n\"\n"},"seq":34}
  33. 1: (471) ->~"Type \"apropos word\" to search for commands related to \"word\".\n"
  34. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (471) ->(gdb)\n"},"seq":36}
  35. 1: (471) ->(gdb)
  36. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (478) <-1001-gdb-set mi-async on\n"},"seq":38}
  37. 1: (478) <-1001-gdb-set mi-async on
  38. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (478) ->1001^done\n"},"seq":40}
  39. 1: (478) ->1001^done
  40. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (478) ->(gdb)\n"},"seq":42}
  41. 1: (478) ->(gdb)
  42. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (481) 1001: elapsed time 5\n"},"seq":44}
  43. 1: (481) 1001: elapsed time 5
  44. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (495) <-1002-interpreter-exec console \"set pagination off\"\n"},"seq":46}
  45. 1: (495) <-1002-interpreter-exec console "set pagination off"
  46. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (495) ->=cmd-param-changed,param=\"pagination\",value=\"off\"\n"},"seq":48}
  47. 1: (495) ->=cmd-param-changed,param="pagination",value="off"
  48. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (496) ->1002^done\n"},"seq":50}
  49. 1: (496) ->1002^done
  50. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (496) ->(gdb)\n"},"seq":52}
  51. 1: (496) ->(gdb)
  52. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (496) 1002: elapsed time 0\n"},"seq":54}
  53. 1: (496) 1002: elapsed time 0
  54. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (496) <-1003-gdb-set auto-solib-add on\n"},"seq":56}
  55. 1: (496) <-1003-gdb-set auto-solib-add on
  56. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (496) ->1003^done\n"},"seq":58}
  57. 1: (496) ->1003^done
  58. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (496) ->(gdb)\n"},"seq":60}
  59. 1: (496) ->(gdb)
  60. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (496) 1003: elapsed time 0\n"},"seq":62}
  61. 1: (496) 1003: elapsed time 0
  62. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (496) <-1004-gdb-set solib-search-path /home/hakon/opm:\n"},"seq":64}
  63. 1: (496) <-1004-gdb-set solib-search-path /home/hakon/opm:
  64. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (497) ->1004^done\n"},"seq":66}
  65. 1: (497) ->1004^done
  66. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (497) ->(gdb)\n"},"seq":68}
  67. 1: (497) ->(gdb)
  68. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (497) 1004: elapsed time 0\n"},"seq":70}
  69. 1: (497) 1004: elapsed time 0
  70. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (498) <-1005-gdb-set stop-on-solib-events 1\n"},"seq":72}
  71. 1: (498) <-1005-gdb-set stop-on-solib-events 1
  72. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (498) ->1005^done\n"},"seq":74}
  73. 1: (498) ->1005^done
  74. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (498) ->(gdb)\n"},"seq":76}
  75. 1: (498) ->(gdb)
  76. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (498) 1005: elapsed time 0\n"},"seq":78}
  77. 1: (498) 1005: elapsed time 0
  78. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (499) <-1006-environment-cd /home/hakon/opm\n"},"seq":80}
  79. 1: (499) <-1006-environment-cd /home/hakon/opm
  80. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (499) ->1006^done\n"},"seq":82}
  81. 1: (499) ->1006^done
  82. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (499) ->(gdb)\n"},"seq":84}
  83. 1: (499) ->(gdb)
  84. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (499) 1006: elapsed time 0\n"},"seq":86}
  85. 1: (499) 1006: elapsed time 0
  86. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (499) <-1007-file-exec-and-symbols /home/hakon/opm/my_test\n"},"seq":88}
  87. 1: (499) <-1007-file-exec-and-symbols /home/hakon/opm/my_test
  88. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (504) ->1007^done\n"},"seq":90}
  89. 1: (504) ->1007^done
  90. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (504) ->(gdb)\n"},"seq":92}
  91. 1: (504) ->(gdb)
  92. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (504) 1007: elapsed time 4\n"},"seq":94}
  93. 1: (504) 1007: elapsed time 4
  94. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (506) <-1008-interpreter-exec console \"show architecture\"\n"},"seq":96}
  95. 1: (506) <-1008-interpreter-exec console "show architecture"
  96. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (506) ->~\"The target architecture is set to \\\"auto\\\" (currently \\\"i386:x86-64\\\").\\n\"\n"},"seq":98}
  97. 1: (506) ->~"The target architecture is set to \"auto\" (currently \"i386:x86-64\").\n"
  98. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (506) ->1008^done\n"},"seq":100}
  99. 1: (506) ->1008^done
  100. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (506) ->(gdb)\n"},"seq":102}
  101. 1: (506) ->(gdb)
  102. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (506) 1008: elapsed time 0\n"},"seq":104}
  103. 1: (506) 1008: elapsed time 0
  104. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (508) <-1009-break-insert -f main\n"},"seq":106}
  105. 1: (508) <-1009-break-insert -f main
  106. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (509) ->1009^done,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x000000000000113d\",func=\"main\",file=\"test.c\",fullname=\"/home/hakon/opm/test.c\",line=\"4\",thread-groups=[\"i1\"],times=\"0\",original-location=\"main\"}\n"},"seq":108}
  107. 1: (509) ->1009^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x000000000000113d",func="main",file="test.c",fullname="/home/hakon/opm/test.c",line="4",thread-groups=["i1"],times="0",original-location="main"}
  108. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (509) ->(gdb)\n"},"seq":110}
  109. 1: (509) ->(gdb)
  110. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (516) 1009: elapsed time 8\n"},"seq":112}
  111. 1: (516) 1009: elapsed time 8
  112. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (524) Send Event AD7EngineCreateEvent\n"},"seq":114}
  113. 1: (524) Send Event AD7EngineCreateEvent
  114. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (526) Send Event AD7ProgramCreateEvent\n"},"seq":116}
  115. 1: (526) Send Event AD7ProgramCreateEvent
  116. --> E (output): {"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/Launch","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"17.4.30710.1","VS.Diagnostics.Debugger.HostVersion":"17.4.30710.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.Launch.Duration":406,"VS.Diagnostics.Debugger.MIMode":"gdb","VS.Diagnostics.Debugger.FrameworkVersion":"6.0.1923.31806"}},"seq":118}
  117. --> R (launch-2): {"type":"response","request_seq":2,"success":true,"command":"launch","body":{},"seq":120}
  118. --> E (initialized): {"type":"event","event":"initialized","body":{},"seq":122}
  119. <-- R (runInTerminal-6) [344 ms]: {"type":"response","seq":3,"command":"runInTerminal","request_seq":6,"success":true,"body":{"shellProcessId":1938174}}
  120. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (564) ShellPid=2194356\n"},"seq":125}
  121. 1: (564) ShellPid=2194356
  122. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (565) DebuggerPid=2194358\n"},"seq":127}
  123. 1: (565) DebuggerPid=2194358
  124. <-- C (setFunctionBreakpoints-4): {"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":4}
  125. --> R (setFunctionBreakpoints-4): {"type":"response","request_seq":4,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]},"seq":130}
  126. <-- C (setDataBreakpoints-5): {"command":"setDataBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":5}
  127. --> R (setDataBreakpoints-5): {"type":"response","request_seq":5,"success":true,"command":"setDataBreakpoints","body":{"breakpoints":[]},"seq":133}
  128. <-- C (setInstructionBreakpoints-6): {"command":"setInstructionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":6}
  129. --> R (setInstructionBreakpoints-6): {"type":"response","request_seq":6,"success":true,"command":"setInstructionBreakpoints","body":{"breakpoints":[]},"seq":136}
  130. <-- C (setExceptionBreakpoints-7): {"command":"setExceptionBreakpoints","arguments":{"filters":[],"filterOptions":[]},"type":"request","seq":7}
  131. --> R (setExceptionBreakpoints-7): {"type":"response","request_seq":7,"success":true,"command":"setExceptionBreakpoints","body":{"breakpoints":[]},"seq":139}
  132. <-- C (configurationDone-8): {"command":"configurationDone","type":"request","seq":8}
  133. --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (782) Send Event AD7LoadCompleteEvent\n"},"seq":143}
  134. 1: (782) Send Event AD7LoadCompleteEvent
  135. --> R (configurationDone-8): {"type":"response","request_seq":8,"success":true,"command":"configurationDone","body":{},"seq":142}
  136. --> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"=thread-group-added,id=\"i1\"\nGNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git\nCopyright (C) 2021 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.\nType \"show copying\" and \"show warranty\" for details.\nThis GDB was configured as \"x86_64-linux-gnu\".\nType \"show configuration\" for configuration details.\nFor bug reporting instructions, please see:\n<https://www.gnu.org/software/gdb/bugs/>.\nFind the GDB manual and other documentation resources online at:\n <http://www.gnu.org/software/gdb/documentation/>.\n\nFor help, type \"help\".\nType \"apropos word\" to search for commands related to \"word\".\nWarning: Debuggee TargetArchitecture not detected, assuming x86_64.\n=cmd-param-changed,param=\"pagination\",value=\"off\"\n"},"seq":145}
  137. =thread-group-added,id="i1"
  138. GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git
  139. Copyright (C) 2021 Free Software Foundation, Inc.
  140. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  141. This is free software: you are free to change and redistribute it.
  142. There is NO WARRANTY, to the extent permitted by law.
  143. Type "show copying" and "show warranty" for details.
  144. This GDB was configured as "x86_64-linux-gnu".
  145. Type "show configuration" for configuration details.
  146. For bug reporting instructions, please see:
  147. <https://www.gnu.org/software/gdb/bugs/>.
  148. Find the GDB manual and other documentation resources online at:
  149. <http://www.gnu.org/software/gdb/documentation/>.
  150.  
  151. For help, type "help".
  152. Type "apropos word" to search for commands related to "word".
  153. Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
  154. =cmd-param-changed,param="pagination",value="off"
  155. <-- C (threads-9): {"command":"threads","type":"request","seq":9}
  156. --> R (threads-9): {"type":"response","request_seq":9,"success":true,"command":"threads","body":{"threads":[]},"seq":149}
  157.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement