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
I want to debug the code to understand how the reduce the values of block passing to the hash length #78
Comments
just put |
may I know Exactly where because I tried 3 different place and get this error
|
Do I need to add |
error
|
👆 thats the 1st line of the So
would be def functional_lenghts(states)
states.reduce({}) do |lengths,state|
binding.pry |
the error points you to
|
But I have used pry in my previous project |
how are you running the file? is it part of a rails project or just a standalone file running from the command line |
Understood .. It is a part of project. I have installed it . |
I am using a sinatra based project for learning . So I first type this :
|
there is a Gemfile in the project, isn't it? if yes, then you should add |
bundle install was taking too much time actually that is why I tried to install manually. |
ruby projects has own style of running stuffs. we just need to adhere to the rules |
bundle install taking too much time, is it normal? |
around 5 min? |
still in same place after bundle install started |
you can tell e.g.
would download 4 gems in parallel and hence save some time |
What is the error as just added
error
|
can you retry after uncommenting line 1 ( |
|
can we see the Gemfile |
|
can you share the output of |
|
and Gemfile.lock |
|
could you add |
|
change pry version to 0.13.1, like gem 'pry', '~> 0.13.1' run |
vaia
I want to see how the datas are processing and holding the values again in a hash function |
just check the value of the variables inside the current scope, e.g in order to jump to the next iteration, use |
Maybe I am doing something wrong . |
Is this work something like this?
|
The text was updated successfully, but these errors were encountered: