Skip to content

Commit 03339d8

Browse files
cammarosanommahrouss
authored andcommitted
[IMP] set print max-depth on gdb config
This prevents crashing the debugger when inspecting a NamespaceSymbol.
1 parent 57a6306 commit 03339d8

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.vscode/launch.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@
4545
"text": "-enable-pretty-printing",
4646
"ignoreFailures": true
4747
},
48+
{
49+
"description": "Set print depth limit to prevent infinite recursion",
50+
"text": "set print max-depth 3",
51+
"ignoreFailures": false
52+
},
4853
]
4954
},
5055
{
@@ -65,7 +70,12 @@
6570
"description": "Enable pretty-printing for gdb",
6671
"text": "-enable-pretty-printing",
6772
"ignoreFailures": true
68-
}
73+
},
74+
{
75+
"description": "Set print depth limit to prevent infinite recursion",
76+
"text": "set print max-depth 3",
77+
"ignoreFailures": false
78+
},
6979
]
7080
},
7181
{

0 commit comments

Comments
 (0)