vscode调试编译wine:
1.调试wine:launch.json
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Wine Debug",
"type": "cppdbg",
"request": "launch",
"program": "/home/zlh/桌面/usr/local/bin/wine",
"args": [
//"/home/zlh/桌面/usr/local/bin/winedbg",
"/home/zlh/.wine/drive_c/Program Files/Tencent/WeChat/WeChat.exe"
],
"stopAtEntry": false,
"cwd": "/home/zlh/桌面/wine",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath":"/usr/bin/gdb",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "将反汇编风格设置为 Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
]
}
]
}
2.编译wine:tasks.json
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "configure",
"command": "./configure",
"args": [
"--without-mingw",
"--disable-tests"
],
"problemMatcher": [],
"detail": "Make template configure task"
},
{
"type": "shell",
"label": "make",
"command": "make",
"args": [
"-j12"
],
"problemMatcher": [],
"detail": "Make template make task",
"dependsOn": [
"configure"
]
},
{
"type": "shell",
"label": "install",
"command": "make install DESTDIR=/home/zlh/桌面",
"problemMatcher": [],
"detail": "Make template install task",
"dependsOn": [
"make"
]
},
{
"type": "shell",
"label": "clean",
"command": "make clean",
"problemMatcher": [],
"detail": "Make template clean task"
}
]
}
https://blog.csdn.net/cly141220010/article/details/127764887