Skip to content

config show_evaledsrc - #848

Merged
ko1 merged 1 commit into
masterfrom
config_show_evaledsrc
Nov 30, 2022
Merged

config show_evaledsrc#848
ko1 merged 1 commit into
masterfrom
config_show_evaledsrc

Conversation

@ko1

@ko1ko1 commented Nov 29, 2022

Copy link
Copy Markdown
Collaborator

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
ko1force-pushed the config_show_evaledsrc branch from 1cc5668 to 044d183CompareNovember 29, 2022 19:35
@ko1
ko1 merged commit bb97fbd into masterNov 30, 2022
@ko1
ko1 deleted the config_show_evaledsrc branch November 30, 2022 01:26
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@ko1