Closed
Labels
questionFurther information is requestedFurther information is requested
Description
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 ?
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested
Activity
alt-romes commentedon Jan 28, 2026
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.yamlfile withNote: 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?
acekingke commentedon Feb 4, 2026
Thank you very much, After I have set the hie.yaml file, it works. Thank you very much, your project is excellent.