blob: 4527e4687145bb5da0928370ae8205da07587ed0 [file] [log] [blame]
{
// 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": "(Windows) Unit Test Launch",
"type": "cppvsdbg",
"request": "launch",
"program": "${command:cmake.launchTargetPath}",
"args": [
"--gtest_break_on_failure"
// ,"--gtest_filter=AutomationControllerTest.InvalidInput"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [
{
// Make sure we suppress the standard asan warnings, otherwise we will crash fast.
"name": "ASAN_OPTIONS",
"value": "detect_leaks=0:detect_container_overflow=0:detect_odr_violation=0:symbolize=1"
}
],
"externalConsole": true
},
{
"name": "(Windows) Emulator Launch",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/build/qemu/windows-x86_64/qemu-system-x86_64",
"args": [
"@P_64",
"-verbose",
"-show-kernel"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}\\build",
"env": {},
"environment": [
{
"name": "ANDROID_SDK_ROOT",
"value": "C:\\Users\\EmuTest2\\AppData\\Local\\Android\\Sdk"
},
// Make sure we suppress the standard asan warnings, otherwise we will crash fast.
{
"name": "ASAN_OPTIONS",
"value": "detect_leaks=0:detect_container_overflow=0:detect_odr_violation=0:symbolize=1"
},
{
"name": "PATH",
"value": "${workspaceFolder}\\build\\lib64;${workspaceFolder}\\build\\lib64\\qt\\lib;;${workspaceFolder}\\build\\lib64\\gles_swiftshaders;"
}
],
"externalConsole": false
},
{
"name": "(lldb) Debug Cmake Target",
"type": "lldb",
"request": "launch",
// Resolved by CMake Tools:
"program": "${command:cmake.launchTargetPath}",
"cwd": "${workspaceFolder}",
"args": [
"-kernel",
"/usr/local/google/home/jansene/Downloads/raspbian/kernel-qemu-4.14.79-stretch",
"-dtb",
"/usr/local/google/home/jansene/Downloads/raspbian/versatile-pb.dtb",
"-m",
"256",
"-M",
"versatilepb",
"-cpu",
"arm1176",
"-serial",
"stdio",
"-append",
"rw console=ttyAMA0 root=/dev/sda2 rootfstype=ext4 loglevel=8 rootwait fsck.repair=yes memtest=1",
"-drive",
"file=/usr/local/google/home/jansene/Downloads/raspbian/2018-11-13-raspbian-stretch-lite.img,format=raw",
"-redir",
"tcp:5022::22",
"-no-reboot"
],
"env": {
// Make sure we suppress the standard asan warnings, otherwise we will crash fast.
"ASAN_OPTIONS": "detect_leaks=0:detect_container_overflow=0:detect_odr_violation=0:symbolize=1"
},
},
{
"name": "(lldb) Debug Emulator",
"type": "lldb",
"request": "launch",
// Resolved by CMake Tools:
"program": "${workspaceFolder}/build/emulator",
"args": [
// You will likely have to change these for emulator launch..
"@28_64",
"-verbose",
"-show-kernel"
],
"postRunCommands": [
"pro handle -p true -s false SIGUSR1"
],
"cwd": "${workspaceFolder}",
"env": {
// Make sure we suppress the standard asan warnings, otherwise we will crash fast.
"ASAN_OPTIONS": "detect_leaks=0:detect_container_overflow=0:detect_odr_violation=0:symbolize=1"
},
},
{
// You need root access to attach debugger
"name": "(lldb) Debug attach Emulator",
"type": "lldb",
"request": "attach",
// Resolved by CMake Tools:
"program": "/usr/local/google/home/jansene/src/emu-master-dev/external/qemu/build/qemu-upstream-aarch64",
"pid": 80501, // replace pid with your real pid
// Ignore signal SIGUSR1
"postRunCommands": [
"pro hand -p true -s false SIGUSR1"
],
},
{
"name": "(lldb) Debug core dump",
"type": "lldb",
"request": "custom",
"targetCreateCommands": [
"target create -c ${workspaceFolder}/core"
],
}
]
}