Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build only command for debugging support #69

Open
wants to merge 1 commit into
base: v0.3
Choose a base branch
from

Conversation

TylerHorth
Copy link

resolves #64

Adds an aoc build command which generates and builds the subproject, without executing it. This way you can launch the aoc-autobuild executable with a debugger.

For example, in vscode using these two config files and the CodeLLDB plugin:

// .vscode/tasks.json
{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "aoc",
            "type": "shell",
            "command": "cargo aoc build"
        }
    ]
}
// .vscode/launch.json
{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "lldb",
            "request": "launch",
            "name": "Debug AOC",
            "preLaunchTask": "aoc",
            "program": "${workspaceFolder}/target/aoc/aoc-autobuild/target/debug/aoc-autobuild",
            "sourceLanguages": ["rust"],
            "args": [],
            "cwd": "${workspaceFolder}"
        }
    ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant