Skip to content

Commit ad915e2

Browse files
committed
Python: add debug based on location snippet
1 parent 24a8487 commit ad915e2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

python/.vscode/ql.code-snippets

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,17 @@
2525
"description": "has relative path",
2626
},
2727

28+
29+
"debug based on location": {
30+
"scope": "ql",
31+
"prefix": "debug based on location",
32+
"body": [
33+
"$1.getLocation().getFile().getShortName() = \"$2\" and",
34+
"$1.getLocation().getStartLine() = $3 and",
35+
],
36+
"description": "debug based on location",
37+
},
38+
2839
"Exists": {
2940
"scope": "ql",
3041
"prefix": "exists",

0 commit comments

Comments
 (0)