mirror of
https://github.com/go-delve/delve.git
synced 2025-11-01 20:20:40 +08:00
Documentation: Fix example block in cli README (#2974)
This commit is contained in:
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user