get-possible-breakpoints-master.js 729 Bytes
Newer Older
1 2 3 4
// Copyright 2017 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

5
let {session, contextGroup, Protocol} = InspectorTest.start('Checks Debugger.getPossibleBreakpoints');
6

7
var source = utils.read('test/inspector/debugger/resources/break-locations.js');
8
contextGroup.addScript(source);
9
session.setupScriptMap();
10 11 12

Protocol.Debugger.onceScriptParsed()
  .then(message => Protocol.Debugger.getPossibleBreakpoints({ start: { lineNumber: 0, columnNumber : 0, scriptId: message.params.scriptId }}))
13
  .then(message => session.logBreakLocations(message.result.locations))
14 15
  .then(InspectorTest.completeTest);
Protocol.Debugger.enable();