使用Delve调试器的Visual Studio代码调试错误

时间:2018-10-04 06:21:20

标签: visual-studio-code delve

在使用Visual Studio Code在Mac机器上调试Golang时,或者在升级MacOS时,您可能会看到以下错误:

debugserver or lldb-server not found: install XCode's command line tools or lldb-server

could not launch process: exec: "lldb-server": executable file not found in $PATH

如何使用delve解决vscode的调试问题?

1 个答案:

答案 0 :(得分:2)

通过执行以下命令来安装命令行开发人员工具:

import { Component, OnInit } from "@angular/core";

    @Component({
      selector: "app-myReadingList",
      templateUrl: "./myReadingList.component.html",
      styleUrls: \["./myReadingList.component.scss"\]
    })
    export class MyReadingListComponent implements OnInit {
      //localUrl: String;
      fileList: any = \[\];
      files: any;
      constructor() {}
      onChange(files: FileList) {
        console.log(files);
        this.files = files;
        this.fileList.push(files\[0\]);
        this.fileList.forEach(file => {
          let temp = file.name.split(".");
          file.name = temp.splice(0, temp.length - 1).join(".");
        });
        console.log(this.fileList);
      }
      ngOnInit() {}
    }