Add .vscode/launch.json

This could be useful for others who need to debug the code.
This commit is contained in:
Demi M. Obenour 2018-12-03 20:57:34 -05:00
parent 678b4ed366
commit a8eef4a728
No known key found for this signature in database
GPG Key ID: B288B55FFF9C22C1
1 changed files with 69 additions and 0 deletions

69
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,69 @@
{
// 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) Prove",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/target/debug/vdf-cli",
"args": ["prove", "aa", "130"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"MIMode": "gdb",
"miDebuggerPath": "/home/user/.cargo/bin/rust-gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
{
"name": "(gdb) Verify Proof",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/target/debug/vdf-cli",
"args": ["verify", "aa", "0", "aa"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"miDebuggerPath": "/home/user/.cargo/bin/rust-gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/target/debug/vdf-cli",
"args": ["compute", "--", "-2", "1"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"miDebuggerPath": "/home/user/.cargo/bin/rust-gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}