Skip to content

Commit 37abde3

Browse files
st0012ko1
authored andcommitted
Update document
1 parent 4ba6807 commit 37abde3

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -567,8 +567,10 @@ The `<...>` notation means the argument.
567567
* break and run `<command>` before stopping.
568568
* `b[reak] ... do: <command>`
569569
* break and run `<command>`, and continue.
570-
* `b[reak] ... path: <path_regexp>`
571-
* break if the triggering event's path matches <path_regexp>.
570+
* `b[reak] ... path: </path_regexp/>`
571+
* break if the triggering event's path matches </path_regexp/>.
572+
* `b[reak] ... path: <path_string>`
573+
* break if the triggering event's path matches <path_string>.
572574
* `b[reak] if: <expr>`
573575
* break if: `<expr>` is true at any lines.
574576
* Note that this feature is super slow.
@@ -580,8 +582,10 @@ The `<...>` notation means the argument.
580582
* runs `<command>` before stopping.
581583
* `catch ... do: <command>`
582584
* stops and run `<command>`, and continue.
583-
* `catch ... path: <path_regexp>`
584-
* stops if the exception is raised from a path that matches <path_regexp>.
585+
* `catch ... path: </path_regexp/>`
586+
* stops if the exception is raised from a path that matches </path_regexp/>.
587+
* `catch ... path: <path_string>`
588+
* stops if the exception is raised from a path that matches <path_string>.
585589
* `watch @ivar`
586590
* Stop the execution when the result of current scope's `@ivar` is changed.
587591
* Note that this feature is super slow.
@@ -591,8 +595,10 @@ The `<...>` notation means the argument.
591595
* runs `<command>` before stopping.
592596
* `watch ... do: <command>`
593597
* stops and run `<command>`, and continue.
594-
* `watch ... path: <path_regexp>`
595-
* stops if the triggering event's path matches <path_regexp>.
598+
* `watch ... path: </path_regexp/>`
599+
* stops if the triggering event's path matches </path_regexp/>.
600+
* `watch ... path: <path_string>`
601+
* stops if the triggering event's path matches <path_string>.
596602
* `del[ete]`
597603
* delete all breakpoints.
598604
* `del[ete] <bpnum>`

lib/debug/session.rb

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,10 @@ def process_command line
511511
# * break and run `<command>` before stopping.
512512
# * `b[reak] ... do: <command>`
513513
# * break and run `<command>`, and continue.
514-
# * `b[reak] ... path: <path_regexp>`
515-
# * break if the triggering event's path matches <path_regexp>.
514+
# * `b[reak] ... path: </path_regexp/>`
515+
# * break if the triggering event's path matches </path_regexp/>.
516+
# * `b[reak] ... path: <path_string>`
517+
# * break if the triggering event's path matches <path_string>.
516518
# * `b[reak] if: <expr>`
517519
# * break if: `<expr>` is true at any lines.
518520
# * Note that this feature is super slow.
@@ -567,8 +569,10 @@ def process_command line
567569
# * runs `<command>` before stopping.
568570
# * `catch ... do: <command>`
569571
# * stops and run `<command>`, and continue.
570-
# * `catch ... path: <path_regexp>`
571-
# * stops if the exception is raised from a path that matches <path_regexp>.
572+
# * `catch ... path: </path_regexp/>`
573+
# * stops if the exception is raised from a path that matches </path_regexp/>.
574+
# * `catch ... path: <path_string>`
575+
# * stops if the exception is raised from a path that matches <path_string>.
572576
when 'catch'
573577
check_postmortem
574578

@@ -589,8 +593,10 @@ def process_command line
589593
# * runs `<command>` before stopping.
590594
# * `watch ... do: <command>`
591595
# * stops and run `<command>`, and continue.
592-
# * `watch ... path: <path_regexp>`
593-
# * stops if the triggering event's path matches <path_regexp>.
596+
# * `watch ... path: </path_regexp/>`
597+
# * stops if the triggering event's path matches </path_regexp/>.
598+
# * `watch ... path: <path_string>`
599+
# * stops if the triggering event's path matches <path_string>.
594600
when 'wat', 'watch'
595601
check_postmortem
596602

0 commit comments

Comments
 (0)