Created
March 30, 2023 13:06
-
-
Save JorgeMarinoDev/01afd3db013dfbb547c28b51709a122f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| // 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": "Engine Run", | |
| "type": "cppdbg", | |
| "request": "launch", | |
| "program": "${workspaceFolder}/build/main", | |
| "args": | |
| [ | |
| "server", | |
| "--event_socket", | |
| "/var/ossec/queue/sockets/queue", | |
| "--api_socket", | |
| "/var/ossec/queue/sockets/engine-api", | |
| "--threads", | |
| "1", | |
| "--store_path", | |
| "${workspaceFolder}/ruleset/store", | |
| "--kvdb_path", | |
| "/var/ossec/etc/kvdb/", | |
| "--log_level", | |
| "0", | |
| "start" | |
| ], | |
| "stopAtEntry": false, | |
| "cwd": "${workspaceFolder}/build", | |
| "environment": | |
| [ | |
| { | |
| "name": "MALLOC_CHECK_", | |
| "value": 2 | |
| }, | |
| { | |
| "name": "GLOG_logtostderr", | |
| "value": "1" | |
| }, | |
| { | |
| "name": "GLOG_v", | |
| "value": "1" | |
| }, | |
| { | |
| "name": "GLOG_minloglevel", | |
| "value": "0" | |
| }, | |
| { | |
| "name": "GLOG_vmodule", | |
| "value": "*=1" | |
| } | |
| ], | |
| "MIMode": "gdb", | |
| "setupCommands": | |
| [ | |
| { | |
| "description": "Enable pretty-printing for gdb", | |
| "text": "-enable-pretty-printing", | |
| "ignoreFailures": true | |
| }, | |
| { | |
| "description": "Enable capture SIGINT", | |
| "text": "handle SIGINT print stop pass", | |
| "ignoreFailures": true | |
| }, | |
| { | |
| "description": "Muchos caracteres", | |
| "text": "-interpreter-exec console \"set print elements 0\"", | |
| "ignoreFailures": true | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "cppdbg", | |
| "request": "launch", | |
| "name": "Open a core dump Wazuh-Engine", | |
| "program": "${workspaceFolder}/build/main", | |
| "coreDumpPath": "${input:coreFileName}", | |
| "cwd": "${workspaceFolder}", | |
| "miDebuggerPath": "/usr/bin/gdb", | |
| "MIMode": "gdb" | |
| } | |
| ], | |
| "inputs": [ | |
| { | |
| "id": "coreFileName", | |
| "type": "promptString", | |
| "description": "Enter core file path" | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment