0x2c7 / ruby_jard

Just Another Ruby Debugger. Provide a rich Terminal UI that visualizes everything your need, navigates your program with pleasure, stops at matter places only, reduces manual and mental efforts. You can now focus on real debugging.
https://rubyjard.org/
MIT License
844 stars 28 forks source link

[BUG] ~/.jardrc does not seem to work with Rails Console #95

Open ADTC opened 3 years ago

ADTC commented 3 years ago

Describe the bug The ~/.jardrc configuration file doesn't seem to be read or applied when running Jard in Rails Console.

To Reproduce Steps to reproduce the behavior:

  1. Install jard in a Rails project.
  2. Run rails console
  3. Execute def j; jard; end; j
  4. Configuration file is not read. All settings are at default.

Expected behavior Configuration file is read and settings applied.

Environment:

ADTC commented 3 years ago

Update: Apparently a complete system reboot is necessary for Jard to see the changes in ~/.jardrc. I think that needs to be fixed somehow to read the file again every time Jard launches, or have some way to force a read.

Note: In the case of WSL, the reboot is done using wsl --shutdown at the Windows Command Prompt. You don't need to restart Windows itself.