I use swift for tensorflow in vscode , I need to debug my code . But It can not see the debug result , it always shows
configuration: { name: 'Run Swift Project',
type: 'lldb',
request: 'launch',
program: '${workspaceFolder}/.build/debug/${workspaceFolderBasename}',
args: ,
cwd: '${workspaceFolder}',
preLaunchTask: 'swift-build',
sourceLanguages: [ 'swift' ],
relativePathBase: '/home/lokinfey/dev/swiftapp/swiftdebugdemo' }
Error: Command failed: /home/lokinfey/swift/usr/bin/lldb -b -O script print('<!' + lldb.SBHostOS.GetLLDBPath(lldb.ePathTypeLLDBShlibDir).fullpath + '!>');print('<!' + lldb.SBHostOS.GetLLDBPath(lldb.ePathTypeSupportExecutableDir).fullpath + '!>');print('<!' + lldb.SBHostOS.GetLLDBPath(lldb.ePathTypePythonDir).fullpath + '!>')
bind: Invalid command `enable-meta-key'.
#0 0x000000000041f9c4 (lldb+0x41f9c4)
#1 0x000000000041da0c (lldb+0x41da0c)
#2 0x000000000041ff58 (lldb+0x41ff58)
#3 0x00007f8e91340890 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x12890)
#4 0x00007f8e87fa593b PyModule_GetState (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x14593b)
#5 0x00007f8e7dfd712e (/usr/lib/python3.6/lib-dynload/readline.cpython-36m-x86_64-linux-gnu.so+0x412e)
#6 0x00007f8e87c46441 rl_initialize (/usr/lib/x86_64-linux-gnu/libedit.so.2+0x1d441)
#7 0x00007f8e7dfd6fd9 PyInit_readline (/usr/lib/python3.6/lib-dynload/readline.cpython-36m-x86_64-linux-gnu.so+0x3fd9)
#8 0x00007f8e87fe4dcc _PyImport_LoadDynamicModuleWithSpec (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x184dcc)
#9 0x00007f8e87fe6bd5 (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x186bd5)
#10 0x00007f8e87fa80d1 PyCFunction_Call (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x1480d1)
#11 0x00007f8e8804a450 _PyEval_EvalFrameDefault (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x1ea450)
#12 0x00007f8e8807bbab (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x21bbab)
#13 0x00007f8e8807c29e (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x21c29e)
#14 0x00007f8e88047b70 _PyEval_EvalFrameDefault (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x1e7b70)
#15 0x00007f8e8807a953 (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x21a953)
#16 0x00007f8e8807c472 (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x21c472)
#17 0x00007f8e88047b70 _PyEval_EvalFrameDefault (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x1e7b70)
#18 0x00007f8e8807a953 (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x21a953)
#19 0x00007f8e8807c472 (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x21c472)
#20 0x00007f8e88047b70 _PyEval_EvalFrameDefault (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x1e7b70)
#21 0x00007f8e8807a953 (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x21a953)
#22 0x00007f8e8807c472 (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x21c472)
#23 0x00007f8e88047b70 _PyEval_EvalFrameDefault (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x1e7b70)
#24 0x00007f8e8807a953 (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x21a953)
#25 0x00007f8e8807c472 (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x21c472)
#26 0x00007f8e88047b70 _PyEval_EvalFrameDefault (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x1e7b70)
#27 0x00007f8e8807a953 (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x21a953)
#28 0x00007f8e8807bfb3 _PyFunction_FastCallDict (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x21bfb3)
#29 0x00007f8e88095ec1 _PyObject_FastCallDict (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x235ec1)
#30 0x00007f8e880966b6 _PyObject_CallMethodIdObjArgs (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x2366b6)
#31 0x00007f8e880d585c PyImport_ImportModuleLevelObject (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x27585c)
#32 0x00007f8e8804a5ca _PyEval_EvalFrameDefault (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x1ea5ca)
#33 0x00007f8e8807bbab (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x21bbab)
#34 0x00007f8e8807c67e PyEval_EvalCodeEx (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x21c67e)
#35 0x00007f8e8804280b PyEval_EvalCode (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x1e280b)
#36 0x00007f8e8804e17d (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x1ee17d)
#37 0x00007f8e87fa80d1 PyCFunction_Call (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x1480d1)
#38 0x00007f8e8804a450 _PyEval_EvalFrameDefault (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x1ea450)
#39 0x00007f8e8807bbab (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x21bbab)
#40 0x00007f8e8807c29e (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x21c29e)
#41 0x00007f8e88047b70 _PyEval_EvalFrameDefault (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x1e7b70)
#42 0x00007f8e8807a953 (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x21a953)
#43 0x00007f8e8807c472 (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x21c472)
#44 0x00007f8e88047b70 _PyEval_EvalFrameDefault (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x1e7b70)
#45 0x00007f8e8807a953 (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x21a953)
#46 0x00007f8e8807c472 (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x21c472)
#47 0x00007f8e88047b70 _PyEval_EvalFrameDefault (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x1e7b70)
#48 0x00007f8e8807a953 (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x21a953)
#49 0x00007f8e8807c472 (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x21c472)
#50 0x00007f8e88047b70 _PyEval_EvalFrameDefault (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x1e7b70)
#51 0x00007f8e8807a953 (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x21a953)
#52 0x00007f8e8807bfb3 _PyFunction_FastCallDict (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x21bfb3)
#53 0x00007f8e88095ec1 _PyObject_FastCallDict (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x235ec1)
#54 0x00007f8e880966b6 _PyObject_CallMethodIdObjArgs (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x2366b6)
#55 0x00007f8e880d585c PyImport_ImportModuleLevelObject (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x27585c)
#56 0x00007f8e8804a5ca _PyEval_EvalFrameDefault (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x1ea5ca)
#57 0x00007f8e8807bbab (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x21bbab)
#58 0x00007f8e8807c67e PyEval_EvalCodeEx (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x21c67e)
#59 0x00007f8e8804280b PyEval_EvalCode (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x1e280b)
#60 0x00007f8e87f7a28f PyRun_StringFlags (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x11a28f)
#61 0x00007f8e87f7b32b PyRun_SimpleStringFlags (/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0+0x11b32b)
#62 0x00007f8e8a9b52c0 lldb_private::ScriptInterpreterPythonImpl::InitializePrivate() (/home/lokinfey/swift/usr/lib/liblldb.so.7svn+0xf202c0)
#63 0x00007f8e8a9b4e83 lldb_private::ScriptInterpreterPythonImpl::ScriptInterpreterPythonImpl(lldb_private::Debugger&) (/home/lokinfey/swift/usr/lib/liblldb.so.7svn+0xf1fe83)
#64 0x00007f8e8a9b6443 lldb_private::ScriptInterpreterPythonImpl::CreateInstance(lldb_private::Debugger&) (/home/lokinfey/swift/usr/lib/liblldb.so.7svn+0xf21443)
#65 0x00007f8e8a4acdce lldb_private::PluginManager::GetScriptInterpreterForLanguage(lldb::ScriptLanguage, lldb_private::Debugger&) (/home/lokinfey/swift/usr/lib/liblldb.so.7svn+0xa17dce)
#66 0x00007f8e8a468b80 lldb_private::Debugger::GetScriptInterpreter(bool) (/home/lokinfey/swift/usr/lib/liblldb.so.7svn+0x9d3b80)
#67 0x00007f8e8a54c40a lldb_private::CommandObjectScript::DoExecute(llvm::StringRef, lldb_private::CommandReturnObject&) (/home/lokinfey/swift/usr/lib/liblldb.so.7svn+0xab740a)
#68 0x00007f8e8a54ad1e lldb_private::CommandObjectRaw::Execute(char const*, lldb_private::CommandReturnObject&) (/home/lokinfey/swift/usr/lib/liblldb.so.7svn+0xab5d1e)
#69 0x00007f8e8a541c85 lldb_private::CommandInterpreter::HandleCommand(char const*, lldb_private::LazyBool, lldb_private::CommandReturnObject&, lldb_private::ExecutionContext*, bool, bool) (/home/lokinfey/swift/usr/lib/liblldb.so.7svn+0xaacc85)
#70 0x00007f8e8a5457eb lldb_private::CommandInterpreter::IOHandlerInputComplete(lldb_private::IOHandler&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >&) (/home/lokinfey/swift/usr/lib/liblldb.so.7svn+0xab07eb)
#71 0x00007f8e8a484f81 lldb_private::IOHandlerEditline::Run() (/home/lokinfey/swift/usr/lib/liblldb.so.7svn+0x9eff81)
#72 0x00007f8e8a469516 lldb_private::Debugger::ExecuteIOHandlers() (/home/lokinfey/swift/usr/lib/liblldb.so.7svn+0x9d4516)
#73 0x00007f8e8a546696 lldb_private::CommandInterpreter::RunCommandInterpreter(bool, bool, lldb_private::CommandInterpreterRunOptions&) (/home/lokinfey/swift/usr/lib/liblldb.so.7svn+0xab1696)
#74 0x00007f8e8a1f8075 lldb::SBDebugger::RunCommandInterpreter(bool, bool, lldb::SBCommandInterpreterRunOptions&, int&, bool&, bool&) (/home/lokinfey/swift/usr/lib/liblldb.so.7svn+0x763075)
#75 0x0000000000409e79 (lldb+0x409e79)
#76 0x000000000040b307 (lldb+0x40b307)
#77 0x00007f8e88533b97 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b97)
#78 0x000000000040670a (lldb+0x40670a)
Stack dump:
- Program arguments: /home/lokinfey/swift/usr/bin/lldb -b -O script print('<!' + lldb.SBHostOS.GetLLDBPath(lldb.ePathTypeLLDBShlibDir).fullpath + '!>');print('<!' + lldb.SBHostOS.GetLLDBPath(lldb.ePathTypeSupportExecutableDir).fullpath + '!>');print('<!' + lldb.SBHostOS.GetLLDBPath(lldb.ePathTypePythonDir).fullpath + '!>')