Skip to content

Commit

Permalink
Merge pull request #37 from GkIgor/depurador
Browse files Browse the repository at this point in the history
build: add .json to vscode
  • Loading branch information
bgcicca authored Dec 4, 2024
2 parents bd0585c + 7958d0c commit e506244
Show file tree
Hide file tree
Showing 2 changed files with 139 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Cmake Configurar",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/galaxy",
"args": [
"${workspaceFolder}/examples/a.glx"
],
"stopAtEntry": false,
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
"cwd": "${workspaceFolder}",
"preLaunchTask": "CMake Configure"
},
{
"name": "Build Project",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/galaxy",
"args": [
"${workspaceFolder}/examples/a.glx"
],
"stopAtEntry": false,
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
"cwd": "${workspaceFolder}",
"preLaunchTask": "CMake Build"
},
{
"name": "Run Lexer_Test",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/src/frontend/lexer/lexer_test",
"args": [
"${workspaceFolder}/examples/a.glx"
],
"stopAtEntry": false,
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
"cwd": "${workspaceFolder}",
"preLaunchTask": "Run Lexer Test"
},
{
"name": "Run Parser_Test",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/src/frontend/parser/parser_test",
"args": [
"${workspaceFolder}/examples/a.glx"
],
"stopAtEntry": false,
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
"cwd": "${workspaceFolder}",
"preLaunchTask": "Run Parser Test"
}
]
}
70 changes: 70 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "CMake Configure",
"type": "shell",
"command": "cmake",
"args": [
"."
],
"group": "build",
"problemMatcher": [],
"options": {
"cwd": "${workspaceFolder}"
}
},
{
"label": "CMake Build",
"type": "shell",
"command": "make",
"args": [],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$gcc"
],
"options": {
"cwd": "${workspaceFolder}"
}
},
{
"label": "Run Lexer Test",
"type": "shell",
"command": "./src/frontend/lexer/lexer_test",
"args": [
"./examples/a.glx"
],
"group": {
"kind": "test",
"isDefault": true
},
"problemMatcher": [
"$gcc"
],
"options": {
"cwd": "${workspaceFolder}"
}
},
{
"label": "Run Parser Test",
"type": "shell",
"command": "./src/frontend/parser/parser_test",
"args": [
"./examples/a.glx"
],
"group": {
"kind": "test",
"isDefault": true
},
"problemMatcher": [
"$gcc"
],
"options": {
"cwd": "${workspaceFolder}"
}
}
]
}

0 comments on commit e506244

Please sign in to comment.