public void launchDebug(final IDevice device, final String debugPort) {
ApplicationManager.getApplication().invokeLater(new Runnable() {
@SuppressWarnings({"IOResourceOpenedButNotSafelyClosed"})
public void run() {
final DebuggerPanelsManager manager = DebuggerPanelsManager.getInstance(myProject);
<BUG>RemoteState st =
new AndroidDebugState(myProject, new RemoteConnection(true, "localhost", debugPort, false), myEnvironment.getRunnerSettings(),</BUG>
myEnvironment.getConfigurationSettings(), myRunningState, device);
RunContentDescriptor debugDescriptor = null;
final ProcessHandler processHandler = myRunningState.getProcessHandler();

public void launchDebug(final IDevice device, final String debugPort) {
ApplicationManager.getApplication().invokeLater(new Runnable() {
@SuppressWarnings({"IOResourceOpenedButNotSafelyClosed"})
public void run() {
final DebuggerPanelsManager manager = DebuggerPanelsManager.getInstance(myProject);
AndroidDebugState st =
new AndroidDebugState(myProject, new RemoteConnection(true, "localhost", debugPort, false), myEnvironment.getRunnerSettings(),
myEnvironment.getConfigurationSettings(), myRunningState, device);
RunContentDescriptor debugDescriptor = null;
final ProcessHandler processHandler = myRunningState.getProcessHandler();
