Visitar URL original
“Unverified Breakpoint “ has occurred · Issue #177 · well-typed/haskell-debugger · GitHub
Skip to content

“Unverified Breakpoint “ has occurred #177

Closed

Description

@acekingke

This is My vscode lauch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "haskell-debugger",
            "request": "launch",
            "name": "Haskell Debugger",
            "projectRoot": "${workspaceFolder}",
            "entryFile": "app/Main.hs",
            "entryPoint": "main",
            "entryArgs": [],
            "extraGhcArgs": []
        }
    ]
}

And it can work in Main.hs file, But I break point at other module file, such as Ast.hs which is called by Main.hs, the break point show that "Unverified Breakpoint" ,Why ?

Activity

  1. alt-romes commented on Jan 28, 2026

    @alt-romes
    Collaborator

    Hi @acekingke. Unverified breakpoint when you set it in a separate file sounds to me as though that other file is not part of the session discovered for your project.

    A few things to try:

    • Is your project a combination of a Cabal executable and a library? Currently, when you have an executable and library, setting a breakpoint on the library component doesn't work out of the box. This is because of hie-bios only loads lazily components other than main by default #38. There is a workaround to be able to set breakpoints on all units in your project:

      Create a hie.yaml file with

      cradle:
          cabal:
              component: "all"
      

      Note: this is described in the readme under "Multiple home units session"

    • Is your project a single Cabal executable? If yes, are all modules listed in other-modules?

    If none of that works, is there some way for me to reproduce your problem?

  2. added theissue type on Jan 29, 2026
  3. acekingke commented on Feb 4, 2026

    @acekingke
    Author

    Thank you very much, After I have set the hie.yaml file, it works. Thank you very much, your project is excellent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions