Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7757493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:06:35+00:00 2026-06-01T13:06:35+00:00

How do I better debug this message? The trace shows 3 lines from one

  • 0

How do I better debug this message? The trace shows 3 lines from one of my files – application.rb:

18 module CustomApp
19   class Application < Rails::Application
...
49 # Enable the asset pipeline

Is there a way to find out exactly which file is throwing this error?

The last trace:

/home/user/.rvm/gems/ruby-1.9.3-p0/gems/figaro-0.2.0/lib/figaro/railtie.rb:8:in `update'

I feel like I’ve hit a brick wall..for that reason, although I’m anxious to fix this error, I’m more anxious to find out how to better debug these messages? Surely something like “Can’t convert Hash into String in somefile.rb:112” would be easily handled?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T13:06:36+00:00Added an answer on June 1, 2026 at 1:06 pm

    To learn about ruby-debug: http://bashdb.sourceforge.net/ruby-debug.html

    To learn about debugging Rails: http://guides.rubyonrails.org/debugging_rails_applications.html

    The error is coming from this file:

    lib/figaro/railtie.rb line 8
    

    The code block in that file:

    path = Rails.root.join("config/application.yml")
    ENV.update(YAML.load(File.read(path)) || {}) if File.exist?(path)
    

    One way to troubleshoot is to use ruby-debug:

    gem install ruby-debug
    

    And edit that file to make it show better errors:

    path = Rails.root.join("config/application.yml")
    if File.exist?(path)
       debugger  
       f = File.read(path)  
       y = YAML.load(f)
       ENV.update(y || {})
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've writen a function to send and receive message from server like this: //Send
Is there a better way to debug JavaScript than MS Script Editor? I am
any better way to write this ? $(this).parent().parent().find( dd ul).toggle(); update.. I am trying
Is there a faster/better way to accomplish the following in a rails app? I
EDIT: I just realized that this question may be better suited to ServerFault. Instead
I have a class with the following properties: Message(string), Added(DateTime) and LogLevel(string) In my
I have a class that inherits from a base class and implements the following...
I am trying to move email from one pst to another. Sample code from
Better yet, how can I make My Computer always open in Explorer as well?
Better to give an example, to illustrate what i am describing. The div element

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.