public hitBreakpoint()

in testSupport/src/debugClient.ts [444:476]


	public hitBreakpoint(launchArgs: any, location: ILocation, expectedStopLocation?: IPartialLocation, expectedBPLocation?: IPartialLocation) : Promise<any> {

		return Promise.all([

			this.waitForEvent('initialized').then(event => {
				return this.setBreakpointsRequest({
					lines: [ location.line ],
					breakpoints: [ { line: location.line, column: location.column } ],
					source: { path: location.path }
				});
			}).then(response => {

				const bp = response.body.breakpoints[0];

				const verified = (typeof location.verified === 'boolean') ? location.verified : true;
				assert.equal(bp.verified, verified, 'breakpoint verification mismatch: verified');

				const actualLocation: ILocation = {
					column: bp.column,
					line: bp.line,
					path: bp.source && bp.source.path
				};
				this.assertPartialLocationsEqual(actualLocation, expectedBPLocation || location);

				return this.configurationDone();
			}),

			this.launch(launchArgs),

			this.assertStoppedLocation('breakpoint', expectedStopLocation || location)

		]);
	}