1 /*******************************************************************************
2 * Copyright (c) 2016 Association for Decentralized Information Management
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * THTH ry - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.debug.browser.internal;
16 import org.simantics.scl.runtime.reporting.SCLReporting;
19 * @author Tuukka Lehtonen / Semantum Oy
23 public static void startDebugServer() throws Exception {
24 Activator activator = Activator.getDefault();
25 DebugBrowserServer server = activator.getDebugServer();
27 server = activator.startDebugServer();
28 SCLReporting.print("Started debug server at " + server.getURL());
30 SCLReporting.print("Debug server is already running at " + server.getURL());
34 public static void stopDebugServer() throws Exception {
35 Activator activator = Activator.getDefault();
36 DebugBrowserServer server = activator.getDebugServer();
38 URL url = server.getURL();
39 activator.stopDebugServer();
40 SCLReporting.print("Stopped debug server that was running at " + url);
42 SCLReporting.print("Debug server is not running.");