question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support of passing jvm arguments to "ceylon" command

See original GitHub issue

Desired syntax is something like ceylon run foo.bar.baz/3.2.2 --jvm-opts="-Xcomp XX:+PrintStubCode". At the moment this can be achieved by putting arguments to environment variable $JAVA_OPTS

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:27 (27 by maintainers)

github_iconTop GitHub Comments

2reactions
lucaswerkmeistercommented, Nov 11, 2016

Thank you, you did the hard work – I had the fortune to work with a sensible language 😉

1reaction
quintessecommented, Nov 11, 2016

@lucaswerkmeister I think I finally got something that works. Turns out you can at least quote arguments with special characters by simply surrounding them with double quotes, you just have to be careful how you use the variables that handle them inside the scripts (with or without quotes, using things like %~xx etc).

But that still leaves us with the fact that you might see an example written for Linux/Mac like in my previous message that won’t work without being quoted. So I decided to add an error message that, if you use the unquoted version, will give you:

Error: use --java options with an equal sign and quotes, eg: "--java=-Xmx500m"

I think this is the best we can do.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A guide to JVM parameters for Java developers
This article introduces some basic JVM parameters to help in these scenarios… ... To switch between available JDKs, run the command again:
Read more >
Is it possible to pass JVM arguments on the command line ...
I'm trying to find a way to pass command line arguments to the JVM when starting Liberty via "server start" or "server run"....
Read more >
Command-line interface: attention to details - Eclipse Ceylon
The named tool is loaded and configured with the remaining command line arguments and control passes to that tool. * 'all' - Compiles...
Read more >
How can I pass VM arguments to gradle from command line?
Using -P a property is passed as gradle project property. ... First make sure you have enabled add VM options at Modify Options...
Read more >
Troubleshooting Guide for Java SE 6 with HotSpot VM - Oracle
This document is a guide to help troubleshoot problems that might arise with applications that are developed using the release of Java Platform, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found