Navigation Menu

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

Is there a way to set arguments when running it on a file #1

Closed
brainopia opened this issue Aug 13, 2011 · 2 comments
Closed

Is there a way to set arguments when running it on a file #1

brainopia opened this issue Aug 13, 2011 · 2 comments

Comments

@brainopia
Copy link

What i mean is following, I can run rails c easily via ruby-debug by prepending rdebug in front of it. But I can't do the same with pry_debug. I've tried to separate arguments with -- still no luck.

@Mon-Ouie
Copy link
Owner

There's no really clean way, but it's still possible:

ARGV.replace ["c"]

I think parameters to the file commands and ARGV[1..-1] could be used for this by PryDebug directly.

@brainopia
Copy link
Author

Thanks

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

No branches or pull requests

2 participants