Skip to content

Support per-project rdbgrc(.rb) files#2

Open
st0012 wants to merge 1 commit intomasterfrom
support-per-project-config
Open

Support per-project rdbgrc(.rb) files#2
st0012 wants to merge 1 commit intomasterfrom
support-per-project-config

Conversation

@st0012
Copy link

@st0012 st0012 commented Jul 5, 2022

Each project may have its own project-specific debugger configuration, like different paths to skip. So the debugger should also read rdbgrc files at the project root, similar to what irb does with irbrc.

Each project may have its own project-specific debugger configuration,
like different paths to skip. So the debugger should also read rdbgrc
files at the project root, similar to what irb does with irbrc.
@st0012 st0012 added the enhancement New feature or request label Jul 5, 2022
@st0012 st0012 self-assigned this Jul 5, 2022
@st0012 st0012 requested a review from peterzhu2118 July 5, 2022 10:51
Copy link

@peterzhu2118 peterzhu2118 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Just a thought, maybe we could have a config option in ~/.rdbgrc that lets users turn off loading .rdbgrc in the project directory.

@st0012
Copy link
Author

st0012 commented Jul 5, 2022

I think it can already be achieved with:

# ~/.rdbgrc.rb

# your configuration

ENV["RUBY_DEBUG_NO_RC"] = true
# ~/.rdbgrc

# your configuration

config set no_rc true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants