| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |