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

Update README.md to show multiple commands execution using binding.b #828

Merged
merged 1 commit into from
Dec 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -832,11 +832,11 @@ It is useful if you only want to call a debug command and don't want to stop the
```
def initialize
@a = 1
binding.b do: 'watch @a'
binding.b do: 'info \n watch @a'
end
```

On this case, register a watch breakpoint for `@a` and continue to run.
On this case, execute the `info` command then register a watch breakpoint for `@a` and continue to run. You can also use `;;` instead of `\n` to separate your commands.

If `pre: 'command'` is specified, the debugger suspends the program and run the `command` as a debug command, and keep suspend.
It is useful if you have operations before suspend.
Expand Down
4 changes: 2 additions & 2 deletions misc/README.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -568,11 +568,11 @@ It is useful if you only want to call a debug command and don't want to stop the
```
def initialize
@a = 1
binding.b do: 'watch @a'
binding.b do: 'info \n watch @a'
end
```

On this case, register a watch breakpoint for `@a` and continue to run.
On this case, execute the `info` command then register a watch breakpoint for `@a` and continue to run. You can also use `;;` instead of `\n` to separate your commands.

If `pre: 'command'` is specified, the debugger suspends the program and run the `command` as a debug command, and keep suspend.
It is useful if you have operations before suspend.
Expand Down