On 2023/04/12 15:49:23 Eric Norman wrote:
> Hi Rahul,
>
> The launcher script allows you to utilize the JAVA_OPTS environment
> variable to supply java remote debugging arguments to the jvm.
>
> For example, to set the env variable and run the launcher with a one-line
> subshell, you can execute something like this to open port 5000 for remote
> debugging:
>
> (export
>
JAVA_OPTS="-agentlib:jdwp=transport=dt_socket,address=5000,server=y,suspend=n"
> && target/dependency/org.apache.sling.feature.launcher/bin/launcher -f
> target/slingfeature-tmp/feature-oak_tar.json)
>
>
> One way to change the http port would be to supply an "
> org.osgi.service.http.port" framework property value as an argument to the
> launcher script.   For example, to use 8888 as the http port use something
> like this:
>
> (export
>
JAVA_OPTS="-agentlib:jdwp=transport=dt_socket,address=5000,server=y,suspend=n"
> && target/dependency/org.apache.sling.feature.launcher/bin/launcher *-D
> org.osgi.service.http.port=8888* -f
> target/slingfeature-tmp/feature-oak_tar.json)
>
>
>
> Hope that helps.
> Eric
>
> On Wed, Apr 12, 2023 at 12:47 AM Rahul Rupani <ra...@teknopoint.in>
> wrote:
>
> > On 2023/04/05 08:14:59 Robert Munteanu wrote:
> > > Hi Rahul,
> > >
> > > On Wed, 2023-04-05 at 08:56 +0530, rahul rupani wrote:
> > > > Hi, can anyone help me with turning on or creating a debug port for
> > > > sling
> > > > 12 as I'm having trouble doing it, Thanks.
> > >
> > > How are launching Sling?
> > >
> > > Thanks,
> > > Robert
> > >  using this command -
> > target/dependency/org.apache.sling.feature.launcher/bin/launcher
> > I've followed all the steps from here -
> > https://github.com/apache/sling-org-apache-sling-starter
> > I need to manipulate the port that sling starts on and add a debug port
too
> > but can't figure it out as it automatically launches using jetty..
> > Thanks for your help.
> >
>  Thank you so much Eric, that's exactly what i needed, one last thing,
the stdout log generated in sling 11 is missing in sling 12 do you have any
idea about that?

Reply via email to