小编Ziq*_*Fan的帖子

在 VS Code 中使用 GDB 集成时如何在“launch.json”配置中设置环境变量

我在 vscode 中的设置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": "(gdb) Launch 25.0_regeragpu",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/25.0_regeragpu/Blazer/MercuryImageComputer/KT/leaf/M31/BrightField/bin/LeafStandalone/Debug/12/LeafStandAlone.x86-64",
            "args": ["-noForcedPatches","${workspaceFolder}/virgo_algo_preq/JobDump/JobInfo_108"],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}/25.0_regeragpu/Blazer/MercuryImageComputer/KT/leaf/M31/BrightField/bin/LeafStandalone/Debug/12",
            "environment": [],
            "externalConsole": false,
            "MIMode": "gdb",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                },
                {
                    "description":  "Set Disassembly Flavor to Intel",
                    "text": "-gdb-set disassembly-flavor intel",
                    "ignoreFailures": …
Run Code Online (Sandbox Code Playgroud)

gdb visual-studio-code

5
推荐指数
1
解决办法
2万
查看次数

Makefile 中目标后的标记更改

我看到一行 makefile 如下:

$(LAST_TARGET_DIR)/%: LFLAGS += -lpthread -lrt -Wl,-uevaluate
Run Code Online (Sandbox Code Playgroud)

在我的理解中,$(LAST_TARGET_DIR)/%是一个目标匹配,目标之后应该是它的依赖项。为什么链接标志在这里改变?

make

2
推荐指数
1
解决办法
850
查看次数

标签 统计

gdb ×1

make ×1

visual-studio-code ×1