binding.b doesn't stop code on second controller request and above

Aberta
#1,051 0 comentários 4 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
35/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
rails, ruby
Domínio
devtools

Direção de pesquisa

Start by reproducing the issue in a Rails controller's #create action with binding.break, using the Ruby 3.3.0, Rails 7.1.2, and debug 1.9.1 versions reported. Trace the debugger's request lifecycle and verify that the breakpoint stops execution on the first and every subsequent request without restarting the server.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Your environment

Ruby 3.3.0
Rails 7.1.2
debug 1.9.1

Hi, I am not sure if this is a bug or I am missing anything. I have try to search around but to no avail.

Issue

I have a Rails app with a controller, I try to put binding.break in the #create action. The code stops for the very first request. However, for second request onward, the code just doesn't stop and I have to restart the server for it to stop again.

def create
  binding.break
  # some actions
end
  • First request, the code stop at the break point
CleanShot 2023-12-27 at 23 11 17@2x
  • Second request, the code doesn't stop
CleanShot 2023-12-27 at 23 12 00@2x
Linguagem predominante
Ruby
Estrelas
1.3k
Forks
146
Métricas de merge de PRs
Nenhum PR com merge em 30d

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de ruby/debug

Todas as issues de ruby/debug

Issues semelhantes

Mais issues de Ruby

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.