10Pines / pdepreludat

BSD 3-Clause "New" or "Revised" License
24 stars 2 forks source link

Agregar capacidades de debugging? #51

Open fdodino opened 2 years ago

fdodino commented 2 years ago

Recién me puse a jugar y agregando una extensión y algunas dependencias extra se puede tener un debugger fácilmente:

image

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

El archivo de configuración es

{
  // 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": "ghc",
      "request": "launch",
      "name": "haskell(stack)",
      "internalConsoleOptions": "openOnSessionStart",
      "workspace": "${workspaceFolder}",
      "startup": "${workspaceFolder}/test/CorrerTests.hs",
      "startupFunc": "",
      "startupArgs": "",
      "stopOnEntry": false,
      "mainArgs": "",
      "ghciPrompt": "H>>= ",
      "ghciInitialPrompt": "> ",
      "ghciCmd": "stack ghci --test --no-load --no-build --main-is TARGET",
      "ghciEnv": {},
      "logFile": "${workspaceFolder}/.vscode/phoityne.log",
      "logLevel": "WARNING",
      "forceInspect": false
    },
  ]
}

No se qué tanto aportará ... @ludat @JuanFdS, ¿qué opinan?