1'use strict';
2
3const common = require('../common');
4
5common.skipIfInspectorDisabled();
6
7const fixtures = require('../common/fixtures');
8const startCLI = require('../common/debugger');
9
10// Test for "Breakpoint at specified location already exists" error.
11const script = fixtures.path('debugger', 'three-lines.js');
12const cli = startCLI(['--port=0', script]);
13
14(async () => {
15  try {
16    await cli.waitForInitialBreak();
17    await cli.waitForPrompt();
18    await cli.command('setBreakpoint(1)');
19    await cli.command('setBreakpoint(1)');
20    await cli.waitFor(/Breakpoint at specified location already exists/);
21  } finally {
22    await cli.quit();
23  }
24})().then(common.mustCall());
25