Skip to content

Commit 1b8e120

Browse files
binarygitko1
authored andcommitted
Update README.md
1 parent 135f54a commit 1b8e120

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -839,11 +839,11 @@ It is useful if you only want to call a debug command and don't want to stop the
839839
```
840840
def initialize
841841
@a = 1
842-
binding.b do: 'watch @a'
842+
binding.b do: 'info \n watch @a'
843843
end
844844
```
845845
846-
On this case, register a watch breakpoint for `@a` and continue to run.
846+
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.
847847
848848
If `pre: 'command'` is specified, the debugger suspends the program and run the `command` as a debug command, and keep suspend.
849849
It is useful if you have operations before suspend.

misc/README.md.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -568,11 +568,11 @@ It is useful if you only want to call a debug command and don't want to stop the
568568
```
569569
def initialize
570570
@a = 1
571-
binding.b do: 'watch @a'
571+
binding.b do: 'info \n watch @a'
572572
end
573573
```
574574

575-
On this case, register a watch breakpoint for `@a` and continue to run.
575+
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.
576576

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

0 commit comments

Comments
 (0)