Skip to content
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