디버깅

카테고리 없음 2022. 5. 20. 14:04

alias ag="gcc -Wall -Werror -Wextra"

 

ag main.c get_next_line.c get_next_line_utils.c -D BUFFER_SIZE=300 -g3 -fsanitize=address

 

launch.json

{
    // 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": "(lldb) Launch",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/a.out",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "externalConsole": false,
            "MIMode": "lldb"
        }
    ]
}
블로그 이미지

Or71nH

,