Skip to content

Commit d87bff2

Browse files
committed
Update document
1 parent cdc38ca commit d87bff2

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
@@ -509,8 +509,10 @@ def process_command line
509509
# * break and run `<command>` before stopping.
510510
# * `b[reak] ... do: <command>`
511511
# * break and run `<command>`, and continue.
512-
# * `b[reak] ... path: <path_regexp>`
513-
# * break if the triggering event's path matches <path_regexp>.
512+
# * `b[reak] ... path: </path_regexp/>`
513+
# * break if the triggering event's path matches </path_regexp/>.
514+
# * `b[reak] ... path: <path_string>`
515+
# * break if the triggering event's path matches <path_string>.
514516
# * `b[reak] if: <expr>`
515517
# * break if: `<expr>` is true at any lines.
516518
# * Note that this feature is super slow.
@@ -565,8 +567,10 @@ def process_command line
565567
# * runs `<command>` before stopping.
566568
# * `catch ... do: <command>`
567569
# * stops and run `<command>`, and continue.
568-
# * `catch ... path: <path_regexp>`
569-
# * stops if the exception is raised from a path that matches <path_regexp>.
570+
# * `catch ... path: </path_regexp/>`
571+
# * stops if the exception is raised from a path that matches </path_regexp/>.
572+
# * `catch ... path: <path_string>`
573+
# * stops if the exception is raised from a path that matches <path_string>.
570574
when 'catch'
571575
check_postmortem
572576

@@ -587,8 +591,10 @@ def process_command line
587591
# * runs `<command>` before stopping.
588592
# * `watch ... do: <command>`
589593
# * stops and run `<command>`, and continue.
590-
# * `watch ... path: <path_regexp>`
591-
# * stops if the triggering event's path matches <path_regexp>.
594+
# * `watch ... path: </path_regexp/>`
595+
# * stops if the triggering event's path matches </path_regexp/>.
596+
# * `watch ... path: <path_string>`
597+
# * stops if the triggering event's path matches <path_string>.
592598
when 'wat', 'watch'
593599
check_postmortem
594600

0 commit comments

Comments
 (0)