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

config show_evaledsrc #848

Merged
merged 1 commit into from
Nov 30, 2022
Merged

config show_evaledsrc #848

merged 1 commit into from
Nov 30, 2022

Conversation

ko1
Copy link
Collaborator

@ko1 ko1 commented Nov 29, 2022

Now debugger records actually evaluated source code with (1) eval
methods or (2) loaded files.

For (1) sometimes eval with existing filename, for example erb,
haml and so on.

For (2) sometimes the contents will be changed after loading
especially on development phase.

config show_evaledsrc configuration (default: false) controls
which should be shown for the source code:

  • true: actually evaluated source code
  • false (default): current file system's source code

For the erb, haml etc from files, false's behavior seems nice
so I added this configuration (with false default).

Now debugger records actually evaluated source code with (1) `eval`
methods or (2) loaded files.

For (1) sometimes `eval` with existing filename, for example erb,
haml and so on.

For (2) sometimes the contents will be changed after loading
especially on development phase.

`config show_evaledsrc` configuration (default: `false`) controls
which should be shown for the source code:

* true: actually evaluated source code
* false (default): current file system's source code

For the erb, haml etc from files, `false`'s behavior seems nice
so I added this configuration (with `false` default).
@ko1 ko1 force-pushed the config_show_evaledsrc branch from 1cc5668 to 044d183 Compare November 29, 2022 19:35
@ko1 ko1 merged commit bb97fbd into master Nov 30, 2022
@ko1 ko1 deleted the config_show_evaledsrc branch November 30, 2022 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant