►
Description
In this demo, Russell Albin will demonstrate how to set-up xDebug configuration on Magento Cloud.
A
Once
again
welcome
to
our
bi-weekly
demo
sessions
today
we
have
russell
albin
from
blue
acorn,
talking
about
debugging
process
on
magento
cloud
so
fulfill.
This
is
a
very
valuable
skill
to
have
just
in
case
when
you
have
issues
so
russell
thanks
for
for
coming
today
and
taking
your
time
to
prepare
the
presentation
and
giving
work
to
you.
B
Cool
all
right
thanks
for
thanks
for
inviting
me,
so
the
the
reason
why
this
topic
even
came
about
was,
we
were
launching.
We
had
a
new
implementation
that
was
launching
and
of
course,
the
day
before
we
were
going
live.
B
It
presented
itself
on
the
production
environment
for
a
pro
a
pro
production
environment,
and
it
was
enough
of
a
bug
that
it
was
going
to
have
us
delay
the
launch
and
up
until
this
point
I
I'd
use
remote
debugging
for
like
integration
environments,
but
I'd
never
done
it
on
a
pro
production
environment,
and
so
I
went
through
the
dev
docs
and
they
were
very
helpful.
But
I
got
to
a
point
where
I
was
blocked
because
it
wasn't
clear
what
the
process
was
to
actually
make
this
work.
B
So
you
know
mine
was
mine
was
due
to
urgency,
and
hopefully
I
can
give
you
guys
a
little
bit
of
headaches
by
giving
you
the
opportunity
to
learn
how
to
do
this
ahead
of
time.
So
I'm
going
to
go
ahead
and
share
my
screen.
B
B
B
All
right,
I'm
going
to
upload
a
pdf
which
has
a
lot
of
my
notes
in
it,
and
then
I
will
be
right
back.
B
B
B
B
Okay,
so,
as
far
as
getting
started,
the
first
thing
that
you
need
to
do,
which
is
probably
the
easiest
part
of
this
whole
process,
is
you
just
need
to
add
this
flag
to
the
red
time?
B
B
So,
let's
first
thing
we're
just
going
to
do
is
we're
going
to
ssh
into
this
integration
environment
and
what
I
like
to
do
is
I
like
to
first
check
to
see
if
I'd
already
deployed
this,
that
just
saves
me
a
step.
B
And
I've
already
set
up
the
environment,
so
I
don't
have
to
worry
about
it,
but
yes,
so
xp
x,
debug
is
already
enabled,
which
means
I
already
committed
this
change
to
the
cloud.
B
The
second
step
is
the
harder
of
the
two
steps:
it's
getting
your
local
environment
properly
configured,
but
I'm
going
to
walk
you
through
each
of
the
steps
and
that
way
you
will
have
the
ability
to
follow
along
and
then,
when
we're
done,
we'll
have
documentation
on
how
to
do
this,
but
the
first
thing
we're
gonna
do
is
we
need
to
create
a.
B
I'm
just
going
to
save
you
guys
a
little
bit
of
headache
and
one
of
the
tricks
that
I've
learned
is
to
help
differentiate
your
different
servers
from
other
ones.
I
like
to
just
use
the
url
for
the
project
as
the
name.
It
just
helps
it
it's
easier
just
to
to
track
down.
As
far
as
the
house.
C
Okay.
Can
I
please
what
expand
your
window
or
to
make
there
a
bit
bigger,
because
I
think
not
everyone
can
see
details.
B
B
I
need
for
most
you
guys,
don't
have
40
inch
screens,
I'm
so
sad.
Okay,
let's
change
it.
B
C
B
That's
a
lot
more
lots:
better:
okay,
okay,
so
I'm
gonna
have
to
toggle
between
my
different
windows
that
way
it's
nice
and
big
for
everybody,
okay.
So
as
far
as
creating
your
server
once
again,
just
use
the
url
of
your
project
for
the
name
that
that
should
help
you
differentiate
it
for
the
host,
it's
going
to
be
the
url
minus
the
https,
or
anything
like
that,
it's
literally
just
the
just
the
url
and
in
my
case
I'm
using
a
cloud
project.
B
B
You
need
to
have
the
path
to
the
directory
where
magento's
installed
and
you
get
this
by
logging
into
logging
into
the
server
and
just
doing
a
pwd
once
you've
sshed
in
and
for
cloud
on,
like
integration,
it's
always
app
and
then,
if
it's
like
a
production
environment
or
whatever
you
usually
have
a
project
id
afterward
other
than
that,
all
you
have
to
do
is
just
click
apply,
and
then
that
will
get
your
server
configured
and
let
me
see
if
I
could
just
share
my
whole
screen,
because
I
think
that
would
be.
B
Okay,
so
now
that
we've
got
the
server
configured,
the
next
step
that
we
need
to
do
is
we
need
to
create
a
remote
debug
and
the
way
you
do
that
is.
B
B
Well,
also
make
sure
that
you
check
this
filter
debug
by
id
key
for
the
server
make
sure
that
you
choose
the
server
that
you
just
created
and
then
for
your
ide
key
for
starter
environments.
It's
just
the
word
phpstorm.
B
B
So
it's
just
the
word
phpstorm
and
once
again
make
sure
you
pick
your
server
from
the
servers
that
you
just
created
and
once
you've
done,
that
all
you
have
to
do
is
click
ok
and
you've,
basically
gotten
about
as
far
as
you
need
to
go
as
far
as
php
storms
configured.
So
we
have
the
clouds
ready
because
we
added
the
flag
to
xdebug
and
we
deployed
it.
B
Phpstorm
is
now
ready
because
we've
properly
configured
it
so
now
the
only
trick
is
to
do
a
port
forward
of
port
9000
from
your
local
computer
to
the
cloud,
and
so
the
way
that
works
is
you.
B
And
you
get
this
information
from
the
cloud
docs,
but
I'll
just
blow
this
up
a
little
bit.
B
B
B
B
Make
sure
that
your
debugger
configuration
is
the
one
selected
and
then,
if
we
hit
the
page
you'll
notice
that
the
debugger
picked
up
right,
where
I
put
a
break
point
on
the
pub
index
and
now
we're
ready
to
debug
this
environment,
everybody
wondering
about
testing
like
a
command
line
that
is
also
available
through
basically
the
same
process,
except
for
we
have
to
do
one
small
change.
B
B
So
that's
the
easy
one
so,
although
it
seems
a
little
daunting,
it's
really
not,
but
that's
the
easy
one
to
do,
because
there's
one
app
server
that
you
have
to
connect
to
the
reason
why
the
pro
environments
for
staging
and
production
are
a
little
more
tricky
is
that
there
are
three
or
more
app
servers
and
that
and
then
they'll
also
have
to
remember
that
there
are
the
the
ide
key
for
x.
Debug
is
not
php
storm.
B
You
have
to
create
a
support
ticket
with
magento
and
the
infrastructure
team
has
to
go
and
fetch
the
keys
and
what
they'll
do
is
they
will
put
that
key
on
the
production
environment
or
staging
wherever
you
asked
to
have
it
enabled
at
without
that
step,
you're
unable
to
debug
production
and
staging,
which
was
one
of
my
blockers.
When
I
did
this,
I
thought
you
could
just
use
phpstorm,
but
I
searched
up
and
down
the
server.
I
couldn't
find
the
key
anywhere
and
then
it
just
turns
out
that
magento
support
had
to
provide
that.
B
So
if
you
do
have
to
do
this,
make
sure
that
you
create
a
ticket
as
soon
as
possible
and
let
them
know
that
you
know
what
your
intentions
are
in
which
environment
and
then
they
will
put
the
key
specific
for
that
environment
on
the
server.
They
won't
give
it
to
you
in
the
ticket.
They'll
they'll
make
you
go,
get
it
from
the
server.
B
So
for
pro
environments,
there's
just
a
little
bit
of
a
nuance
that
you
have
to
be
aware
of.
Once
again,
you
have
to
know
that
there
are
three
or
more
app
servers.
You
can
have
upwards
if
I
think
nine
is
the
biggest
one.
I've
ever
worked
on
the
other
thing
when
you
ssh
into
a
production
environment,
and
you
try
to
look
for
xdebug-
it's
not
going
to
exist,
I'm
sorry
yeah
for
xdebug
and
php.
It's
not
going
to
exist,
and
it's
because
that
service
runs
on
another
container.
B
D
Really
quick
russell
is
the
is
the
xc
bug
flag
on
the
runtime
extensions
required
for
staging
in
production
environments.
B
D
B
D
B
All
right
so,
for
this
one,
I've
got
a
pro
environment
that
happens
to
have
three
app
servers,
and
so
what
I'll
do
is
the
first
thing
we'll
do
is
we'll
pop
into
magento
cloud.
Ssh.
B
And
we'll
do
a
php.v
and
you'll
notice
that
there
is
no
x
debug
enabled
which,
as
long
as
magento
support
says
that
they've
done
it,
you
can
basically
s
feel
safe,
that
it's
been
done.
But
there
is
a
command
that
you
can
run
to
see
if
it
is,
if
it
is
actually
active.
B
And
with
this
ps,
fau
wx,
and
then
you
pipe
grab
x,
debug
and
then
you
pipe
grec
v
grep
with
that
you'll
notice
that
there
are
x,
debug
configs
here.
So
if
you
run
this
command-
and
you
see
these
two
or
similar
lines,
you
know
that
you're
on
the
right
path.
That
means
the
the
environment
is
ready
for
you
to
test.
B
The
next
thing
we're
going
to
need
to
do
is
for
each
project.
It
has
a
special
project
id.
That
is
something
you
need.
This
is
what
we're
gonna
use
for
the
subsequent
commands
so
make
sure
that
you
find
that
id
and
you
save
it
someplace.
B
What
I
like
to
do
is
I
like
to
create
a
just
a
text
file
and
then
I'll
make
sure
that
I
replace
all
of
the
different
values
where
they
belong.
So
that
way
I
don't
have
to
try
to
remember
it.
It
gets
really
weird
and
then
the
other
thing
is.
You
need
the
three
urls
for
your
different
environments.
B
So,
if
you're
not
familiar
just
log
into
your
cloud
project,
get
the
three
or
four
or
six
or
twelve.
However
many
app
servers
you
have
get
those
urls
because
you're
going
to
need
them.
B
B
So
I
just
like
to
go
to
phpstorm
preferences
go
to
servers
and,
let's
see
so
once
again,
I
like
to
use
the
url
for
my
name
I
like
to
use
the
host
does
not
have
https,
it's
literally
just
the
the
main
url
port
443,
make
sure
it's
xdebug
and
make
sure
that
the
path
is
where
it
should
be.
B
So,
if
you're
unclear
for
pro
environments,
it's
app
slash
and
then
the
project
id,
but
once
again
you
can
verify
that
by
once
you've
logged
in
you
can
just
do
pwd
and
wherever
you
log
in
for
magento
cloud.
That's
your
route
and
that's
where
you
want
the
where
you
want
this
configuration
to
be
so
you
want
it
to
be
app
slash
and
then
the
project
id
once
you've
all
done
that
and
you're
happy.
B
The
next
step,
we're
going
to
do
is
we're
going
to
add
a
configuration
for
the
php
remote
debug
and
by
doing
that,
you're
going
to
use
a
little
plus
arrow
you're,
going
to
go
down
to
php
remote
debug,
and
because
I
set
this
up
ahead
of
time,
the
name
can
be
once
again
whatever
you
want.
This
is
just
a
some,
a
cue
for
you
to
find
it
in
the
future.
B
Make
sure
you
add
this
check
box
to
filter
by
ad
key
pick
the
server
from
the
servers
that
you
just
created,
but
then
the
biggest
difference
is
that
you
don't
use
the
word
phpstorm.
You
use
the
key
that
magento
provides.
B
So
this
is
the
the
ide
keys
that
you're
gonna
need
so
that
you
put
here
and
then
when
you're
all
happy,
you
click,
ok
and
then
the
next
step
is
to
prepare
your
urls
for
how
you're
going
gonna
connect.
So
you
have
to
do
the
port
forwarding
again,
but
you
have
to
do
it
for
all
three
application
servers
and
then
also
be
wary
that
you
can
only
have
one
person
debugging
at
a
time
and
magento
provide-
and
this
is
another
thing
that
blocked
me.
B
I
was
unclear
on
the
syntax
on
how
to
kick
someone
off
who
might
be,
who
might
have
left
their
debugger
connection
running,
and
so
there
are
a
total
of
six
commands,
but
there
are
two
for
each
application
server.
The
first
one
basically
gets
rid
of
any
other
x,
debug
connection
that
was
made
and
then
the
second
one
does
the
port
forwarding
to
connect
you
to
the
environment.
So
that
way
you
can
you
could
do
your
your
task.
B
I
found
it
easier
just
to
open
up
three
terminal
windows
so
that
way
I
can
see
each
one
at
the
same
time,
but
it's
probably
not
necessary,
but
once
again
make
sure
that
you
take
the
example
that
magento
cloud
support
gives
you
for
the
urls
and
just
make
sure
that
you
update
on
them
with
the
the
ssh
path
to
your
project
and
then
make
sure
you
swap
out
the
id,
because
it's
too
easy
to
copy
and
paste
and
then
make
a
mistake.
B
So
here's
my
little
text
file,
which
I
created
to
help
expedite
the
process,
so
this
first
one
is
going
to
be
kicking
off
any
existing
ssh
connections
that
have
been
made
for
debugging
and
if
you
get
nothing
back
or
you
happen
to
get
some
response
back
either
way,
it's
fine
there's
really!
No
failure
on
that
one,
the
second
one
actually
does
the
port
forwarding
connection
for
you.
B
Okay,
so
for
me
it
just
shows
a
response
of
1731,
which
I
think
is
the
the
process
id
so
I'll
go
ahead
and
just
pop
open
a
second
terminal,
and
I
will
kick
anybody
off
who
may
have
started
that
process.
B
Three
okay,
so
now
I've
got
a
solid
response.
2021
looks
good
at
this
point.
The
other
variance
is
that
you
need
to
add
a
get
parameter
x,
debug
session
start
with
the
the
x
debug
key.
That
magento
provides
you,
so
this
is
different
than
a
slightly
different
than
what
we
did
for
the
integration
environment.
The
syntax
here
has
to
be
exactly
this,
and
so
we'll
just
copy
this,
maybe.
B
And
before
we
do
that,
just
make
sure
that
your
telephone
is
listening
for
connections
and
your
service
is
ready
and
that's
listening,
and
if
everything
is
hooked
up
properly
boom.
There's
our
debugger
picks
it
up.
Just
like
it's
supposed
to
and
command
line
is
the
exact
same
the
exact
same
pattern
so
as
we
did
on
integration.
B
That
in
essence
covers
the
entire
process.
From
start
to
finish,
there's
a
couple
of
things
to
note:
you
can
use
the
verbose
flag
when
you're
connecting
via
ssh
that
will
output
errors.
It
will
help
you
track
down.
What
may
have
happened.
B
Another
thing
to
note
is
you
can
sometimes
accidentally
have
two
or
three
active
sessions
going
on
that
will
confuse
you,
because
your
debugger
is
just
going
to
stop
at
random
times
so
make
sure
when
you're
debugging
that
you
only
have
one
active
session
going
on,
I
don't
know
how
it
happens,
but
every
once
in
a
while,
I
got
stuck
with
that.
B
The
other
thing
is
the
syntax
for
starting
and
stopping
are
very
similar,
except
for
the
word,
stop
versus
start,
so
just
make
sure
that
you're
using
the
right
one,
because
it's
kind
of
frustrating
when
you
keep
hitting
refresh
and
it's
not
working
yeah,
it's
kind
of
irritating
the
other
gotcha
was
whoops
turn
that
off.
B
Restarting
your
browser
and
then
on
pro
environments,
if
you
have
full
page
cache,
which
most
of
us
do,
the
other
trick
that
I
learned
is
sometimes
you
can't
just
hit
the
home
page,
it's
better
to
hit
like
customer
account,
login
or
check
out
some
non-cash
page
to
help.
You
make
sure
that
the
break
point
is
actually
hit,
and
I
think
yep
and
just
double
check
your
id
key.
B
If
it
doesn't
kick
off
like
it's
supposed
to
that
was
the
other
big
thing
is
just
make
sure
that
the
it's
copied
and
pasted
correctly
so
with
that
I'll
go
ahead
and
open
it
up
for
any
questions
or
banter
from
people
who
are
going
to
heckle
me,
because
I
know
it's.
A
Guys
cool
thanks
russell
for
for
the
great
presentation
and
we'll
be
sending
the
recording
to
everyone
later.
So,
if
you
have
any
other
questions
later,
please
let
any
of
us
know
and
we'll
try
to
to
help
with
that.
Thanks
again
for
presentation
and
have
a
nice
day.
C
There
is
a
question
about
where
presentation
the
recording
will
be
shared
in
our
spark.
I
I
will
send
a
link
to
it
right
now
who
is
not
in
our.