mirror of
https://github.com/nodejs/node.git
synced 2025-05-15 17:23:43 +00:00

PR-URL: https://github.com/nodejs/node/pull/39469 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
16 lines
729 B
JavaScript
16 lines
729 B
JavaScript
// 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.
|
|
|
|
let {session, contextGroup, Protocol} = InspectorTest.start('Checks Debugger.getPossibleBreakpoints');
|
|
|
|
var source = utils.read('test/inspector/debugger/resources/break-locations.js');
|
|
contextGroup.addScript(source);
|
|
session.setupScriptMap();
|
|
|
|
Protocol.Debugger.onceScriptParsed()
|
|
.then(message => Protocol.Debugger.getPossibleBreakpoints({ start: { lineNumber: 0, columnNumber : 0, scriptId: message.params.scriptId }}))
|
|
.then(message => session.logBreakLocations(message.result.locations))
|
|
.then(InspectorTest.completeTest);
|
|
Protocol.Debugger.enable();
|