| Index: webkit/glue/devtools/js/debugger_agent.js
|
| ===================================================================
|
| --- webkit/glue/devtools/js/debugger_agent.js (revision 13006)
|
| +++ webkit/glue/devtools/js/debugger_agent.js (working copy)
|
| @@ -223,6 +223,8 @@
|
| if (msg.getType() == 'event') {
|
| if (msg.getEvent() == 'break') {
|
| this.handleBreakEvent_(msg);
|
| + } else if (msg.getEvent() == 'exception') {
|
| + this.handleExceptionEvent_(msg);
|
| }
|
| } else if (msg.getType() == 'response') {
|
| if (msg.getCommand() == 'scripts') {
|
| @@ -259,6 +261,17 @@
|
| /**
|
| * @param {devtools.DebuggerMessage} msg
|
| */
|
| +devtools.DebuggerAgent.prototype.handleExceptionEvent_ = function(msg) {
|
| + var body = msg.getBody();
|
| + debugPrint('Uncaught exception in ' + body.script.name + ':' +
|
| + body.sourceLine + '\n' + body.sourceLineText);
|
| + this.resumeExecution();
|
| +};
|
| +
|
| +
|
| +/**
|
| + * @param {devtools.DebuggerMessage} msg
|
| + */
|
| devtools.DebuggerAgent.prototype.handleScriptsResponse_ = function(msg) {
|
| var scripts = msg.getBody();
|
| for (var i = 0; i < scripts.length; i++) {
|
|
|