aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/skylarkdebug/proto/skylark_debugging.proto
diff options
context:
space:
mode:
authorGravatar brendandouglas <brendandouglas@google.com>2018-06-25 08:26:01 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-06-25 08:27:59 -0700
commitcac65060368ad57e038b59ec185ef816bef9c7e6 (patch)
treee714ba04843380afaa25001dd8f4db22aa01a7d7 /src/main/java/com/google/devtools/build/lib/skylarkdebug/proto/skylark_debugging.proto
parente5a90da8656863da48865536ab9c75f7ecf8e23e (diff)
Go back to handling conditional breakpoints server side.
I should have left it as it was -- doing it client-side is just too slow. ENUM_VALUE_OK=This proto has never yet been used PiperOrigin-RevId: 201957138
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skylarkdebug/proto/skylark_debugging.proto')
-rw-r--r--src/main/java/com/google/devtools/build/lib/skylarkdebug/proto/skylark_debugging.proto23
1 files changed, 18 insertions, 5 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skylarkdebug/proto/skylark_debugging.proto b/src/main/java/com/google/devtools/build/lib/skylarkdebug/proto/skylark_debugging.proto
index 918a667db4..a1066c3e7f 100644
--- a/src/main/java/com/google/devtools/build/lib/skylarkdebug/proto/skylark_debugging.proto
+++ b/src/main/java/com/google/devtools/build/lib/skylarkdebug/proto/skylark_debugging.proto
@@ -178,9 +178,15 @@ message ThreadContinuedEvent {
message Breakpoint {
oneof condition {
// A breakpoint that is triggered when a particular line is reached.
- // Column index will be ignored for breakpoints.
+ // Column index will be ignored for breakpoints. The debugger only supports
+ // one breakpoint per line. If multiple breakpoints are supplied for a
+ // single line, only the last such breakpoint is accepted.
Location location = 1;
}
+ // An optional condition for the breakpoint. When present, the breakpoint will
+ // be triggered iff both the primary condition holds and this expression
+ // evaluates to True.
+ string expression = 2;
}
// A single frame in a thread's stack trace.
@@ -251,6 +257,10 @@ message PausedThread {
// The location in Skylark code of the next statement or expression that will
// be executed.
Location location = 4;
+
+ // An error that occurred while evaluating a breakpoint condition. Present if
+ // and only if pause_reason is CONDITIONAL_BREAKPOINT_ERROR.
+ Error conditional_breakpoint_error = 5;
}
// The reason why a thread was paused
@@ -259,16 +269,19 @@ enum PauseReason {
UNSET = 0;
// The stepping condition in a ContinueExecutionRequest was hit.
- STEPPING = 4;
+ STEPPING = 1;
// All threads are paused (e.g. prior to the initial StartDebuggingRequest).
- ALL_THREADS_PAUSED = 1;
+ ALL_THREADS_PAUSED = 2;
// Thread paused in response to a PauseThreadRequest.
- PAUSE_THREAD_REQUEST = 2;
+ PAUSE_THREAD_REQUEST = 3;
// A breakpoint was hit.
- HIT_BREAKPOINT = 3;
+ HIT_BREAKPOINT = 4;
+
+ // An error occurred evaluating a breakpoint condition
+ CONDITIONAL_BREAKPOINT_ERROR = 5;
}
// The debugger representation of a Skylark value.