Skip to content

Debugger does not stop at the breakpoint #524

@dehlong

Description

@dehlong

Hello,
when I try to run the step debugger, breakpoints just get ignored and it finishes without breaking. I have the default setup and I try to debug quicksort.

Here is my 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": [
        {
            "type": "mix_task",
            "name": "mix (Default task)",
            "request": "launch",
            "projectDir": "${workspaceRoot}",
        },
        {
            "type": "mix_task",
            "name": "mix test",
            "request": "launch",
            "task": "test",
            "taskArgs": [
                "--trace"
            ],
            "startApps": true,
            "projectDir": "${workspaceRoot}",
            "requireFiles": [
                "test/**/test_helper.exs",
                "test/**/*_test.exs"
            ]
        }
    ]
}

And this is what the debugger prints:


Setting breakpoint in QuickSort /home/samo/Documents/Programming/elixir_test/lib/elixir_test.ex:12
Running mix run
Mix.Task.run returned:
:ok
Exiting debugger.
If this behavior is undesired consider setting `exitAfterTaskReturns` to `false` in launch config.
Mix task exited with reason
normal
returning code 0
Mix task exited with reason
normal
returning code 0
Received disconnect request

And this happens no matter whether I have breakpoints set or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions