{ "configurations": [ { "type": "lldb", "request": "launch", "name": "Compile & Gen 1.ll", // 要调试的程序 "program": "${workspaceFolder}/build/cminusfc", // 命令行参数 "args": [ "-emit-llvm", "./build/1.cminus", "-o", "./build/1.ll" ], // 程序运行的目录 "cwd": "${workspaceFolder}", // 程序运行前运行的命令(例如 build) "preLaunchTask": "make cminusfc", "initCommands": [ "command script import ${workspaceFolder}/lldb_formatters.py" ] }, { "type": "lldb", "request": "launch", "name": "Gen 1.ll", // 要调试的程序 "program": "${workspaceFolder}/build/cminusfc", // 命令行参数 "args": [ "-emit-llvm", "./build/1.cminus", "-o", "./build/1.ll" ], // 程序运行的目录 "cwd": "${workspaceFolder}", "initCommands": [ "command script import ${workspaceFolder}/lldb_formatters.py" ] }, { "type": "lldb", "request": "launch", "name": "Compile & Gen 1.s", // 要调试的程序 "program": "${workspaceFolder}/build/cminusfc", // 命令行参数 "args": [ "-S", "./build/1.cminus", "-o", "./build/1.s" ], // 程序运行的目录 "cwd": "${workspaceFolder}", // 程序运行前运行的命令(例如 build) "preLaunchTask": "make cminusfc", "initCommands": [ "command script import ${workspaceFolder}/lldb_formatters.py" ] } ] }