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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js

Issue 2650943009: [DevTools] increase AsyncCallStackDepth to 8 (Closed)
Patch Set: added missing test Created 3 years, 10 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
OLDNEW
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
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
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 };
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-with-async-callstack-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698