You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2
Original file line number
Diff line number
Diff 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
839
839
```
840
840
def initialize
841
841
@a = 1
842
-
binding.b do: 'watch @a'
842
+
binding.b do: 'info \nwatch @a'
843
843
end
844
844
```
845
845
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.
847
847
848
848
If `pre: 'command'` is specified, the debugger suspends the program and run the `command` as a debug command, and keep suspend.
849
849
It is useful if you have operations before suspend.
Copy file name to clipboardExpand all lines: misc/README.md.erb
+2-2
Original file line number
Diff line number
Diff 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
568
568
```
569
569
def initialize
570
570
@a = 1
571
-
binding.b do: 'watch @a'
571
+
binding.b do: 'info \n watch @a'
572
572
end
573
573
```
574
574
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.
576
576
577
577
If `pre: 'command'` is specified, the debugger suspends the program and run the `command` as a debug command, and keep suspend.
578
578
It is useful if you have operations before suspend.
0 commit comments