haskell-debug-adapter: Haskell Debug Adapter.

[ bsd3, development ] [ Propose Tags ]

Please see README.md


[Skip to Readme]

Modules

[Last Documentation]

  • Haskell
    • Debug
      • Adapter
        • Haskell.Debug.Adapter.Control

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0.29.0, 0.0.30.0, 0.0.31.0, 0.0.32.0, 0.0.33.0, 0.0.34.0, 0.0.35.0, 0.0.36.0, 0.0.37.0, 0.0.38.0, 0.0.39.0
Change log Changelog.md
Dependencies aeson, async, base (>=4.7 && <5), bytestring, Cabal, clock, cmdargs, conduit, conduit-extra, containers, data-default, directory, filepath, fsnotify, haskell-dap (>=0.0.12.0), haskell-debug-adapter, hslogger, lens, MissingH, mtl, parsec, process, resourcet, safe-exceptions, text [details]
License BSD-3-Clause
Copyright 2016-2019 phoityne_hs
Author phoityne_hs
Maintainer phoityne.hs@gmail.com
Category Development
Home page https://github.com/phoityne/haskell-debug-adapter/
Bug tracker https://github.com/phoityne/haskell-debug-adapter/issues
Uploaded by phoityne_hs at 2019-05-05T10:16:38Z
Distributions NixOS:0.0.39.0
Reverse Dependencies 1 direct, 0 indirect [details]
Executables haskell-debug-adapter
Downloads 6665 total (136 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2019-05-05 [all 3 reports]

Readme for haskell-debug-adapter-0.0.31.0

[back to package description]

HDA : Haskell Debug Adapter

A debug adapter for Haskell debugging system.

101_deploy.png

Started developing based on phoityne-vscode-0.0.28.0.
Changed package name (because a name "phoityne-vscode" is ambiguous.), and with some refactoring.

Requirement

  • haskell-dap
  • ghci-dap
> stack install haskell-dap ghci-dap haskell-debug-adapter

Limitation

Currently this project is an experimental design and implementation.

  • Dev and checked on windows10 ghc-8.4
  • The source file extension must be ".hs"
  • Can not use STDIN handle while debugging.

Configuration

launch.json

NAME REQUIRED OR OPTIONAL DEFAULT SETTING DESCRIPTION
startup required ${workspaceRoot}/test/Spec.hs debug startup file, will be loaded automatically.
startupFunc optional "" (empty string) debug startup function, will be run instead of main function.
startupArgs optional "" (empty string) arguments for startup function. set as string type.
ghciCmd required stack ghci --with-ghc=ghci-dap --test --no-load --no-build --main-is TARGET --ghci-options -fprint-evld-with-show launch ghci command, must be Prelude module loaded. For example, "ghci -i\({workspaceRoot}/src", "cabal exec -- ghci -i\){workspaceRoot}/src"
ghciPrompt required H>>= ghci command prompt string.
ghciInitialPrompt optional "Prelude> " initial pormpt of ghci. set it when using custom prompt. e.g. set in .ghci
stopOnEntry required false stop or not after debugger launched.
mainArgs optional "" (empty string) main arguments.
logFile required ${workspaceRoot}/.vscode/phoityne.log internal log file.
logLevel required WARNING internal log level.