OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 print('Debugger breaks in next script after stepOut from previous one.'); |
| 6 |
| 7 InspectorTest.addScript(` |
| 8 function foo() { |
| 9 setTimeout('var a = 1;//# sourceURL=timeout.js', 0); |
| 10 setTimeout('var a = 2;//# sourceURL=timeout2.js', 0); |
| 11 setTimeout('var a = 3;//# sourceURL=timeout3.js', 0); |
| 12 debugger; |
| 13 } |
| 14 //# sourceURL=foo.js`, 7, 26); |
| 15 |
| 16 InspectorTest.setupScriptMap(); |
| 17 Protocol.Debugger.onPaused(message => { |
| 18 InspectorTest.logCallFrames(message.params.callFrames); |
| 19 InspectorTest.log(''); |
| 20 Protocol.Debugger.stepOut(); |
| 21 }); |
| 22 Protocol.Debugger.enable() |
| 23 .then(() => Protocol.Runtime.evaluate({ expression: 'foo()' })) |
| 24 .then(() => InspectorTest.waitPendingTasks()) |
| 25 .then(InspectorTest.completeTest); |
OLD | NEW |