| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 state = SDK.DebuggerModel.PauseOnExceptionsState.DontPauseOnExceptions; | 158 state = SDK.DebuggerModel.PauseOnExceptionsState.DontPauseOnExceptions; |
| 159 else if (Common.moduleSetting('pauseOnCaughtException').get()) | 159 else if (Common.moduleSetting('pauseOnCaughtException').get()) |
| 160 state = SDK.DebuggerModel.PauseOnExceptionsState.PauseOnAllExceptions; | 160 state = SDK.DebuggerModel.PauseOnExceptionsState.PauseOnAllExceptions; |
| 161 else | 161 else |
| 162 state = SDK.DebuggerModel.PauseOnExceptionsState.PauseOnUncaughtExceptions
; | 162 state = SDK.DebuggerModel.PauseOnExceptionsState.PauseOnUncaughtExceptions
; |
| 163 | 163 |
| 164 this._agent.setPauseOnExceptions(state); | 164 this._agent.setPauseOnExceptions(state); |
| 165 } | 165 } |
| 166 | 166 |
| 167 asyncStackTracesStateChanged() { | 167 asyncStackTracesStateChanged() { |
| 168 const maxAsyncStackChainDepth = 4; | 168 const maxAsyncStackChainDepth = 8; |
| 169 var enabled = Common.moduleSetting('enableAsyncStackTraces').get() && this._
debuggerEnabled; | 169 var enabled = Common.moduleSetting('enableAsyncStackTraces').get() && this._
debuggerEnabled; |
| 170 this._agent.setAsyncCallStackDepth(enabled ? maxAsyncStackChainDepth : 0); | 170 this._agent.setAsyncCallStackDepth(enabled ? maxAsyncStackChainDepth : 0); |
| 171 } | 171 } |
| 172 | 172 |
| 173 stepInto() { | 173 stepInto() { |
| 174 this._agent.stepInto(); | 174 this._agent.stepInto(); |
| 175 } | 175 } |
| 176 | 176 |
| 177 stepOver() { | 177 stepOver() { |
| 178 this._agent.stepOver(); | 178 this._agent.stepOver(); |
| (...skipping 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1357 stack.callFrames.shift(); | 1357 stack.callFrames.shift(); |
| 1358 if (previous && !stack.callFrames.length) | 1358 if (previous && !stack.callFrames.length) |
| 1359 previous.parent = stack.parent; | 1359 previous.parent = stack.parent; |
| 1360 else | 1360 else |
| 1361 previous = stack; | 1361 previous = stack; |
| 1362 stack = stack.parent; | 1362 stack = stack.parent; |
| 1363 } | 1363 } |
| 1364 return asyncStackTrace; | 1364 return asyncStackTrace; |
| 1365 } | 1365 } |
| 1366 }; | 1366 }; |
| OLD | NEW |