(MacOS High Sierra) ERROR: Unable to start debugging. Unexpected LLDB output from command "-exec-run". Command 'exec-run'. Invalid process during debug session

Đang mở
#2,276 19 bình luận 0 reaction 1 người được giao Xem trên GitHub

@pieandcakes đang làm issue này rồi.

Từ ngày 16/7/2018.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

debugger

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:
screen shot 2018-07-16 at 11 14 27 am

Ngôn ngữ chính
TypeScript
Star
6.2k
Fork
1.7k
Merge trung bình
14 giờ 46 phút
Pull request đã merge (30 ngày)
61

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/vscode-cpptools

Tất cả issue của microsoft/vscode-cpptools

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.