Skip to content

Build support #215

Closed
Closed
@JanKok

Description

@JanKok

I'm trying to do C code development using gcc and make and using WebFreak001's gdb debugger extension. I added "preLaunchTask": "make" to launch.json and

{
    "version": "0.1.0",
    "command": "make",
    "isShellCommand": false,
    // Show the output window only if unrecognized errors occur.
    "showOutput": "always", //"silent",

    // use the standard tsc problem matcher to find compile problems
    // in the output.
    "problemMatcher": "$tsc"
}

in tasks.json and now make runs each time I click start, which is pretty good. But,

  1. If there are compile errors (resulting in make returning an error value), Code doesn't stop. It tries to run the program anyway.
  2. The make output window appears momentarily but is replaced with the debug console (which BTW displays the cryptic message undefined=thread-group-added,id="i1"). I'd like the output window to remain visible if there are make errors.
  3. F8, Ctrl-Shift-M etc., don't work to let me visit the errors in my source code. What does it take to make that work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions