Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JRubyExec doesn't stop on debugger #444

Open
boris-petrov opened this issue Jun 5, 2023 · 0 comments
Open

JRubyExec doesn't stop on debugger #444

boris-petrov opened this issue Jun 5, 2023 · 0 comments

Comments

@boris-petrov
Copy link

plugins {
        id 'com.github.jruby-gradle.base' version '2.0.2'
}

jruby.jrubyVersion = '9.4.2.0'

repositories {
        mavenCentral()
        ruby.gems()
}

dependencies {
        gems 'rubygems:pry:0.14.2'
        gems 'rubygems:pry-debugger-jruby:2.1.1'
        gems 'rubygems:spoon:0.0.6'
}

import com.github.jrubygradle.JRubyExec

tasks.register('test', JRubyExec) {
        jrubyArgs '--debug'
        script 'a.rb'
}

a.rb:

require 'pry-debugger-jruby'

binding.pry

puts 1

Running gradle test on this should stop the execution on the binding.pry line and only when continue is typed-in should execution continue and 1 be printed. Instead, execution continues immediately and the process exits.

This doesn't happen when manually running jruby --debug a.rb - in that case all works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant