diff --git a/snippets/cpp.snippets b/snippets/cpp.snippets index aaa8db1..7723f71 100644 --- a/snippets/cpp.snippets +++ b/snippets/cpp.snippets @@ -4,3 +4,5 @@ snippet O0 Pragma to disable optimizations #pragma GCC pop_options +snippet assertm Assert with a message + assert(${condition} && "${message}"); diff --git a/snippets/json.snippets b/snippets/json.snippets index fe6fcd3..0b4fc2f 100644 --- a/snippets/json.snippets +++ b/snippets/json.snippets @@ -1,4 +1,4 @@ -snippet launch template of dap_config.json +snippet dap_cpp template of dap_config.json { "version": "0.2.0", "configurations": [ @@ -7,7 +7,21 @@ snippet launch template of dap_config.json "request": "launch", "name": "Launch", "program": "./${exe}", - "args": [], + "args": [] + } + ] + } + +snippet dap_python template of dap_config.json + { + "version": "0.2.0", + "configurations": [ + { + "type": "debugpy", + "request": "launch", + "name": "Launch", + "program": "./${file}", + "args": [] } ] }