Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

test code notation with break

オープン
#557 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
ruby

調査の方向性

Start by reviewing the existing debug_code test framework usage and the two proposed notations: comments on source lines or markers beside line numbers. Compare both with the existing break commands and debugger method, then define how tests should translate the chosen notation into breakpoints and how completion will be verified.

索引モデルが issue の本文から書いたものです。

説明

enhancement

Just idea.

Now we need to set breakpoints with break commands on tests like:

    def program
      <<~RUBY
       1| def foo a
       2|   b = a + 1  # break
       3| end
       4| x = 1        # break
       5| x = 2
       6| x = 3
      RUBY
    end

    def test_foobar
      debug_code program do
        type 'break 2'
        type 'break 4'

On this code, line 2 and 4 is breakpont, and using 2 break commands. On the other hands, if we use IDE we can set breakpoints on a code (with editor's support). So we can write breakpoints on the code.

IDEA1: Use comment on the line.

      <<~RUBY
       1| def foo a
       2|   b = a + 1  # break
       3| end
       4| x = 1        # break
       5| x = 2
       6| x = 3
      RUBY

and issues two break commands by the test framework.

IDEA2: Check on the left of line number:

      <<~RUBY
       1| def foo a
      *2|   b = a + 1
       3| end
      *4| x = 1
       5| x = 2
       6| x = 3
      RUBY

and issues two break commands by the test framework.


Of course we can write debugger method, but it can be different from normal break points, so it should be supported separately.

主要言語
Ruby
スター
1.3k
フォーク
146
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ruby/debug のほかの issue

ruby/debug の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。