jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JRuby
  • JRUBY-2428

Add a --debug flag that can enable JDB for anyone wanting command-line debugging capabilities.

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: JRuby 1.1.1
  • Component/s: Miscellaneous
  • Labels:
    None

Description

Marker bug for work already done.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Charles Oliver Nutter added a comment - 21/Apr/08 7:20 PM

Already completed.

Show
Charles Oliver Nutter added a comment - 21/Apr/08 7:20 PM Already completed.
Hide
Permalink
Martin Krauskopf added a comment - 25/Apr/08 8:01 AM

Should be also documented in jruby --help.

...../jruby$ svn di src/org/jruby/RubyInstanceConfig.java 
Index: src/org/jruby/RubyInstanceConfig.java
===================================================================
--- src/org/jruby/RubyInstanceConfig.java	(revision 6562)
+++ src/org/jruby/RubyInstanceConfig.java	(working copy)
@@ -279,6 +279,7 @@
                 .append("  -c              check syntax only\n")
                 .append("  -Cdirectory     cd to directory, before executing your script\n")
                 .append("  -d              set debugging flags (set $DEBUG to true)\n")
+                .append("  --debug         runs JRuby process under JDB\n")
                 .append("  -e 'command'    one line of script. Several -e's allowed. Omit [programfile]\n")
                 .append("  -Fpattern       split() pattern for autosplit (-a)\n")
                 //.append("  -i[extension]   edit ARGV files in place (make backup if extension supplied)\n")
Show
Martin Krauskopf added a comment - 25/Apr/08 8:01 AM Should be also documented in jruby --help.
...../jruby$ svn di src/org/jruby/RubyInstanceConfig.java 
Index: src/org/jruby/RubyInstanceConfig.java
===================================================================
--- src/org/jruby/RubyInstanceConfig.java	(revision 6562)
+++ src/org/jruby/RubyInstanceConfig.java	(working copy)
@@ -279,6 +279,7 @@
                 .append("  -c              check syntax only\n")
                 .append("  -Cdirectory     cd to directory, before executing your script\n")
                 .append("  -d              set debugging flags (set $DEBUG to true)\n")
+                .append("  --debug         runs JRuby process under JDB\n")
                 .append("  -e 'command'    one line of script. Several -e's allowed. Omit [programfile]\n")
                 .append("  -Fpattern       split() pattern for autosplit (-a)\n")
                 //.append("  -i[extension]   edit ARGV files in place (make backup if extension supplied)\n")
Hide
Permalink
Matt Hauck added a comment - 14/Jan/12 12:57 AM

Is this still available? I tried in 1.6.5.1, and it looks like the option was changed to --jdb in the usage, but this response with: "jruby: unknown option --jdb"

Show
Matt Hauck added a comment - 14/Jan/12 12:57 AM Is this still available? I tried in 1.6.5.1, and it looks like the option was changed to --jdb in the usage, but this response with: "jruby: unknown option --jdb"
Hide
Permalink
Hiro Asari added a comment - 14/Jan/12 1:41 AM

Hi, Matt,

Do you use jruby-launcher?

I think that the flag was meant for shell script:

$ ./bin/jruby.sh  --jdb
Initializing jdb ...
> 

I think that the launcher would have to know about this flag, and act accordingly, but obviously that's not happening. Since this is a regression of sorts, could you open a separate ticket?

Thank you.

Show
Hiro Asari added a comment - 14/Jan/12 1:41 AM Hi, Matt, Do you use jruby-launcher? I think that the flag was meant for shell script:
$ ./bin/jruby.sh  --jdb
Initializing jdb ...
> 
I think that the launcher would have to know about this flag, and act accordingly, but obviously that's not happening. Since this is a regression of sorts, could you open a separate ticket? Thank you.
Hide
Permalink
Matt Hauck added a comment - 17/Jan/12 6:26 PM

Hmm, it appears this is an issue with rvm, then, and how it is installing. I switched to the jruby binary from jruby.org and it works fine now.

Thanks.

Show
Matt Hauck added a comment - 17/Jan/12 6:26 PM Hmm, it appears this is an issue with rvm, then, and how it is installing. I switched to the jruby binary from jruby.org and it works fine now. Thanks.
Hide
Permalink
Charles Oliver Nutter added a comment - 17/Jan/12 6:29 PM

It looks like we're missing the --jdb flag in the JRuby native launcher, which rvm installs by default. I'll look into that.

Show
Charles Oliver Nutter added a comment - 17/Jan/12 6:29 PM It looks like we're missing the --jdb flag in the JRuby native launcher, which rvm installs by default. I'll look into that.
Hide
Permalink
Charles Oliver Nutter added a comment - 17/Feb/12 11:01 AM

Wow, I gave it a shot but I cannot figure out the right way to wire it into the launcher. If someone else wants to give it a shot, be my guest: https://github.com/jruby/jruby-launcher.

Show
Charles Oliver Nutter added a comment - 17/Feb/12 11:01 AM Wow, I gave it a shot but I cannot figure out the right way to wire it into the launcher. If someone else wants to give it a shot, be my guest: https://github.com/jruby/jruby-launcher.

People

  • Assignee:
    Charles Oliver Nutter
    Reporter:
    Charles Oliver Nutter
Vote (0)
Watch (1)

Dates

  • Created:
    21/Apr/08 7:20 PM
    Updated:
    17/Feb/12 11:01 AM
    Resolved:
    21/Apr/08 7:20 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.