Documentation: Fix example block in cli README (#2974)

This commit is contained in:
Adrien Barreau
2022-04-19 20:35:54 +02:00
committed by GitHub
parent 75b4421d70
commit aac4e19c24
2 changed files with 2 additions and 0 deletions

View File

@ -201,6 +201,7 @@ With the -clear option a condtion on the breakpoint can removed.
The '% n' form means we should stop at the breakpoint when the hitcount is a multiple of n.
Examples:
cond 2 i == 10 breakpoint 2 will stop when variable i equals 10
cond name runtime.curg.goid == 5 breakpoint 'name' will stop only on goroutine 5
cond -clear 2 the condition on breakpoint 2 will be removed

View File

@ -472,6 +472,7 @@ With the -clear option a condtion on the breakpoint can removed.
The '% n' form means we should stop at the breakpoint when the hitcount is a multiple of n.
Examples:
cond 2 i == 10 breakpoint 2 will stop when variable i equals 10
cond name runtime.curg.goid == 5 breakpoint 'name' will stop only on goroutine 5
cond -clear 2 the condition on breakpoint 2 will be removed