itemis / xtext-languageserver-example

An Example for an Xtext Language Server
Eclipse Public License 1.0
54 stars 26 forks source link

Remote debugging is no longer working #21

Closed cdietrich closed 6 years ago

cdietrich commented 7 years ago

Remote debugging is no longer working

it work only if i set an environment variable like

export MYDSL_STANDALONE_OPTS="-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=y,quiet=y -Xmx256m"

cdietrich commented 7 years ago

@franzbecker can you have a look. it looks like the gradle application plugin passes these as args and not as jvm params by default

colameo commented 7 years ago

another way todo this is to set the env variable in the extension itself:

var process = require('process');

export function activate(context: ExtensionContext) {
   ... 
    process.env['MYDSL_STANDALONE_OPTS'] = "-Dmyenv=foobar";

    // Create the language client and start the client.
    let disposable = new LanguageClient('Xtext Server', serverOptions, clientOptions).start();
cdietrich commented 6 years ago

Fixed