Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: c11e2b94244a635edb87613ed3347c3568565d4e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*******************************************************************************
 * Copyright (c) 2011, 2013 Wind River Systems, Inc. and others. All rights reserved.
 * This program and the accompanying materials are made available under the terms
 * of the Eclipse Public License v1.0 which accompanies this distribution, and is
 * available at http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * Wind River Systems - initial API and implementation
 *******************************************************************************/
package org.eclipse.tcf.te.runtime.services.interfaces;

import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.tcf.te.runtime.interfaces.callback.ICallback;
import org.eclipse.tcf.te.runtime.interfaces.properties.IPropertiesContainer;

/**
 * Debug service.
 * <p>
 * Allow to start and control the debugger for a set of given debug contexts.
 */
public interface IDebugService extends IService {

	/**
	 * Launches a debug session for the given context and attaches to it. The attach
	 * can be parameterized via the data properties.
	 *
	 * @param context The debug context. Must not be <code>null</code>.
	 * @param data The data properties to parameterize the attach. Must not be <code>null</code>.
	 * @param monitor The progress monitor.
	 * @param callback The callback to invoke once the operation completed. Must not be <code>null</code>.
	 */
	public void attach(Object context, IPropertiesContainer data, IProgressMonitor monitor, ICallback callback);

	/**
	 * Terminates a debug session for the given context and detaches it. The detach
	 * can be parameterized via the data properties.
	 *
	 * @param context The debug context. Must not be <code>null</code>.
	 * @param data The data properties to parameterize the detach. Must not be <code>null</code>.
	 * @param monitor The progress monitor.
	 * @param callback The callback to invoke once the operation completed. Must not be <code>null</code>.
	 */
	public void detach(Object context, IPropertiesContainer data, IProgressMonitor monitor, ICallback callback);

	/**
	 * Returns if or if not the debugger has been launched for the given context.
	 *
	 * @param context The debug context. Must not be <code>null</code>.
	 * @return <code>True</code> if the debugger has been launched for the context, <code>false</code> otherwise.
	 */
	public boolean isLaunched(Object context);
}

Back to the top