microsoft / microsoft/vscode-cpptools
(MacOS High Sierra) ERROR: Unable to start debugging. Unexpected LLDB output from command "-exec-run". Command 'exec-run'. Invalid process during debug session
Offen
@pieandcakes arbeitet bereits daran.
Seit 16.7.2018.
debugger
- Vorherrschende Sprache
- TypeScript
- Sterne
- 6.2k
- Forks
- 1.7k
- Ø Merge
- 14 Std. 46 Min.
- Gemergte PRs (30 T.)
- 61
Beschreibung
Type: Debugger
OS: MacOS
Version: 10.13.6
Debugger: LLDB
launch.json:
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(lldb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/a.out",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"preLaunchTask": "echo",
"MIMode": "lldb",
"logging": { "engineLogging": true }
}
]
}
Logs:
1: (284) LaunchOptions ExePath='/Users/hgarg/testing-vscode/a.out'
1: (284) LaunchOptions WorkingDirectory='/Users/hgarg/testing-vscode'
1: (284) LaunchOptions ExeArguments=''
1: (284) LaunchOptions MIMode='lldb'
1: (284) LaunchOptions MIDebuggerPath='/Users/hgarg/.vscode/extensions/ms-vscode.cpptools-0.17.6/debugAdapters/lldb/bin/lldb-mi'
1: (284) LaunchOptions WaitDynamicLibLoad='false'
1: (284) LaunchOptions ExternalConsole='true'
1: (284) LaunchOptions>
1: (285) LaunchOptions</LocalLaunchOptions>
1: (388) Starting: "/Users/hgarg/.vscode/extensions/ms-vscode.cpptools-0.17.6/debugAdapters/lldb/bin/lldb-mi" --interpreter=mi
1: (407) DebuggerPid=61512
1: (575) ->(gdb)
1: (589) <-1001-gdb-set solib-search-path "/Users/hgarg/testing-vscode:"
1: (589) ->1001^done
1: (589) ->(gdb)
1: (591) 1001: elapsed time 3
1: (592) <-1002-environment-cd /Users/hgarg/testing-vscode
1: (592) ->1002^done,path="/Users/hgarg/testing-vscode"
1: (593) ->(gdb)
1: (596) 1002: elapsed time 3
1: (596) <-1003-gdb-set new-console on
1: (596) ->1003^done
1: (596) 1003: elapsed time 0
1: (596) <-1004-file-exec-and-symbols /Users/hgarg/testing-vscode/a.out
1: (597) ->(gdb)
1: (601) STDERR: Traceback (most recent call last):
1: (601) STDERR: File "<input>", line 1, in <module>
1: (601) STDERR: File "/Users/hgarg/anaconda2/lib/python2.7/copy.py", line 52, in <module>
1: (601) STDERR: import weakref
1: (601) STDERR: File "/Users/hgarg/anaconda2/lib/python2.7/weakref.py", line 14, in <module>
1: (601) STDERR: from _weakref import (
1: (601) STDERR: ImportError: cannot import name _remove_dead_weakref
1: (679) ->1004^done
1: (679) ->(gdb)
1: (679) 1004: elapsed time 82
1: (679) ->=library-loaded,id="/Users/hgarg/testing-vscode/a.out",target-name="/Users/hgarg/testing-vscode/a.out",host-name="/Users/hgarg/testing-vscode/a.out",symbols-loaded="1",symbols-path="/Users/hgarg/testing-vscode/a.out.dSYM/Contents/Resources/DWARF/a.out",loaded_addr="-",size="8192"
1: (681) <-1005-interpreter-exec console "platform status"
1: (681) -> Platform: host
1: (681) -> Triple: x86_64h-apple-macosx
1: (681) ->OS Version: 10.13.6 (17G65)
1: (681) -> Kernel: Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64
1: (681) -> Hostname: 127.0.0.1
1: (681) ->WorkingDir: /Users/hgarg/testing-vscode
1: (681) ->1005^done
1: (681) ->(gdb)
1: (684) 1005: elapsed time 3
1: (688) <-1006-break-insert main
1: (690) ->1006^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x000000010000108a",func="main",file="main.cpp",fullname="/Users/hgarg/testing-vscode/main.cpp",line="5",times="0",original-location="main"}
1: (690) ->(gdb)
1: (690) ->=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x000000010000108a",func="main",file="main.cpp",fullname="/Users/hgarg/testing-vscode/main.cpp",line="5",times="0",original-location="main"}
1: (691) 1006: elapsed time 2
Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
1: (741) <-1007-exec-run
1: (5253) ->1007^error,msg="Command 'exec-run'. Invalid process during debug session"
1: (5253) 1007: elapsed time 4512
1: (5253) ->(gdb)
ERROR: Unable to start debugging. Unexpected LLDB output from command "-exec-run". Command 'exec-run'. Invalid process during debug session
1: (5270) <--gdb-exit
1: (5271) ->^exit
1: (5271) ->=thread-group-exited,id="i1"
1: (5271) ->(gdb)
1: (5271) ->
1: (5272) ->
1: (5275) <-logout
The program '/Users/hgarg/testing-vscode/a.out' has exited with code 42 (0x0000002a).
Folder Structure:

Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.