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

Unified Diff: tools/ddbg.dart

Issue 10540121: Add API to configure debugger pause on exception (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/debugger_api_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ddbg.dart
===================================================================
--- tools/ddbg.dart (revision 8556)
+++ tools/ddbg.dart (working copy)
@@ -41,6 +41,7 @@
pl <id> Print dlibrary info for given id
ls <libname> List loaded scripts in library
gs <lib_id> <script_url> Get source text of script in library
+ epi <none|all|unhandled> Set exception pause info
h Print help
""");
}
@@ -124,6 +125,10 @@
"params": { "libraryId": Math.parseInt(args[1]),
"url": args[2] }};
sendCmd(cmd).then((result) => handleGetSourceResponse(result));
+ } else if (command == "epi" && args.length == 2) {
+ var cmd = { "id": seqNum, "command": "setPauseOnException",
+ "params": { "exceptions": args[1] }};
+ sendCmd(cmd).then((result) => handleGenericResponse(result));
} else if (command == "q") {
quitShell();
} else if (command == "h") {
« no previous file with comments | « runtime/vm/debugger_api_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698