diff options
| author | Benoit Germain <benoit.germain@ubisoft.com> | 2025-04-14 16:10:20 +0200 |
|---|---|---|
| committer | Benoit Germain <benoit.germain@ubisoft.com> | 2025-04-14 16:10:20 +0200 |
| commit | 5e20107328f7adfedf314d3826997d2f47b7a7fe (patch) | |
| tree | 65cd16e23e0b7483e92a07b8fa21fb061793ec88 | |
| parent | e46cf20f8c4474cb96b4db4239c8e3bd66248e00 (diff) | |
| download | lanes-5e20107328f7adfedf314d3826997d2f47b7a7fe.tar.gz lanes-5e20107328f7adfedf314d3826997d2f47b7a7fe.tar.bz2 lanes-5e20107328f7adfedf314d3826997d2f47b7a7fe.zip | |
A configuration file to debug mingw ucrt64 builds with vscode
| -rw-r--r-- | .vscode/launch.json | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..c4de37e --- /dev/null +++ b/.vscode/launch.json | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | { | ||
| 2 | "version": "0.2.0", | ||
| 3 | "configurations": [ | ||
| 4 | |||
| 5 | { | ||
| 6 | "name": "Debug MinGW-w64", | ||
| 7 | "type": "cppdbg", | ||
| 8 | "request": "launch", | ||
| 9 | "program": "${workspaceFolder}/unit_tests/UnitTests.exe", | ||
| 10 | "args": [ | ||
| 11 | //"--list-tests", | ||
| 12 | "--rng-seed 0", | ||
| 13 | "-s scripted_tests.legacy.basic" | ||
| 14 | ], | ||
| 15 | "stopAtEntry": true, | ||
| 16 | "cwd": "${workspaceFolder}", | ||
| 17 | "environment": [ | ||
| 18 | { | ||
| 19 | "name" : "LUA_CPATH", | ||
| 20 | "value" : "./src/?.dll;./deep_userdata_example/?.dll" | ||
| 21 | }, | ||
| 22 | { | ||
| 23 | "name" : "LUA_PATH", | ||
| 24 | "value" : "./src/?.lua;./tests/?.lua" | ||
| 25 | } | ||
| 26 | ], | ||
| 27 | "externalConsole": false, // or true, depending on your preference | ||
| 28 | "MIMode": "gdb", | ||
| 29 | "miDebuggerPath": "C:/msys64/ucrt64/bin/gdb.exe", // Replace with your GDB path | ||
| 30 | "setupCommands": [ | ||
| 31 | { | ||
| 32 | "description": "Enable pretty-printing for gdb", | ||
| 33 | "text": "-enable-pretty-printing", | ||
| 34 | "ignoreFailures": true | ||
| 35 | }, | ||
| 36 | { | ||
| 37 | "description": "Show GDB commands", | ||
| 38 | "text": "-interpreter-exec console \"monitor set debug 1\"", | ||
| 39 | "ignoreFailures": true | ||
| 40 | } | ||
| 41 | ] | ||
| 42 | } | ||
| 43 | ] | ||
| 44 | } | ||
