gren-lang / gren-lang/compiler

Debug.breakpoint in core module

Open
#64 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

accepted
Dominant language
Haskell
Stars
503
Forks
29
PR merge metrics
No merged PRs in 30d

Description

Goal

Having a function with signature breakpoint : a -> a that will call the js debugger function to pause the execution and to enable step debugger, and maybe log to console.

image

Use Cases

Debug complex computations using |> Debug.breakpoint between, or for cases where Debug.log could be spammed dozens of times and would be hard to know what is happening without pausing the execution.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests; start by locating the core Debug module and the JavaScript output or runtime path for debugger calls. Confirm the function has signature breakpoint : a -> a and pauses execution when used in a pipeline, with console logging only if that remains part of the agreed behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.