Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(775)

Side by Side Diff: runtime/vm/debugger.h

Issue 1285643004: Allow stepping when paused at isolate start. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/observatory/tests/service/test_helper.dart ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_DEBUGGER_H_ 5 #ifndef VM_DEBUGGER_H_
6 #define VM_DEBUGGER_H_ 6 #define VM_DEBUGGER_H_
7 7
8 #include "include/dart_tools_api.h" 8 #include "include/dart_tools_api.h"
9 9
10 #include "vm/object.h" 10 #include "vm/object.h"
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 void RemoveBreakpoint(intptr_t bp_id); 452 void RemoveBreakpoint(intptr_t bp_id);
453 Breakpoint* GetBreakpointById(intptr_t id); 453 Breakpoint* GetBreakpointById(intptr_t id);
454 454
455 void SetStepOver(); 455 void SetStepOver();
456 void SetSingleStep(); 456 void SetSingleStep();
457 void SetStepOut(); 457 void SetStepOut();
458 bool IsStepping() const { return resume_action_ != kContinue; } 458 bool IsStepping() const { return resume_action_ != kContinue; }
459 459
460 bool IsPaused() const { return pause_event_ != NULL; } 460 bool IsPaused() const { return pause_event_ != NULL; }
461 461
462 // Put the isolate into single stepping mode when Dart code next runs.
463 //
464 // This is used by the vm service to allow the user to step while
465 // paused at isolate start.
466 void EnterSingleStepMode();
467
462 // Indicates why the debugger is currently paused. If the debugger 468 // Indicates why the debugger is currently paused. If the debugger
463 // is not paused, this returns NULL. Note that the debugger can be 469 // is not paused, this returns NULL. Note that the debugger can be
464 // paused for breakpoints, isolate interruption, and (sometimes) 470 // paused for breakpoints, isolate interruption, and (sometimes)
465 // exceptions. 471 // exceptions.
466 const DebuggerEvent* PauseEvent() const { return pause_event_; } 472 const DebuggerEvent* PauseEvent() const { return pause_event_; }
467 473
468 void SetExceptionPauseInfo(Dart_ExceptionPauseInfo pause_info); 474 void SetExceptionPauseInfo(Dart_ExceptionPauseInfo pause_info);
469 Dart_ExceptionPauseInfo GetExceptionPauseInfo() const; 475 Dart_ExceptionPauseInfo GetExceptionPauseInfo() const;
470 476
471 void VisitObjectPointers(ObjectPointerVisitor* visitor); 477 void VisitObjectPointers(ObjectPointerVisitor* visitor);
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 650
645 friend class Isolate; 651 friend class Isolate;
646 friend class BreakpointLocation; 652 friend class BreakpointLocation;
647 DISALLOW_COPY_AND_ASSIGN(Debugger); 653 DISALLOW_COPY_AND_ASSIGN(Debugger);
648 }; 654 };
649 655
650 656
651 } // namespace dart 657 } // namespace dart
652 658
653 #endif // VM_DEBUGGER_H_ 659 #endif // VM_DEBUGGER_H_
OLDNEW
« no previous file with comments | « runtime/observatory/tests/service/test_helper.dart ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698