Koozali.org: home of the SME Server

Xdebug installation guide/contrib

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: Xdebug installation guide/contrib
« Reply #30 on: April 18, 2019, 01:03:43 AM »
Yes this is always a challenge....

I'm probably not going to have a chance to look close until sometime next week.

Couple of things. Better to use a proper mount than gvfs... I have mine cifs mounted with sssd at login

So loxal dir is something like

/home/e-smith/john/Mount/ibay... eyc

I think your remote path will need to be something like

scp://user@server://home/e-smith...
 Etc

I think you need to be able to ssh/scp to the server somehow either as root or a user.

I have all my stuff setup with keys and a ssh config file so I can just do something like

ssh work

Which is actually something like ssh -p 3333 root@1.2.3.4

You need that so you can actually edit the file you are debugging...

I'll see if I can get Atom running myself next week.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline beast

  • *
  • 245
  • +0/-0
Re: Xdebug installation guide/contrib
« Reply #31 on: April 18, 2019, 07:32:12 AM »
scp://user@server://home/e-smith...

just report back that there is no such file or folder (in Danish)

Also think that SCP is for copy operations?

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: Xdebug installation guide/contrib
« Reply #32 on: April 18, 2019, 09:35:19 AM »
Don't take it too literally.....

Check the wiki for scp.

Yes, it is copy, but that's what you need to edit the file remotely.

I'll look more when I have more time
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline beast

  • *
  • 245
  • +0/-0
Re: Xdebug installation guide/contrib
« Reply #33 on: April 18, 2019, 09:38:20 AM »
This is really an up hill battle ;-)

Trying right now to get sshfs to automount without luck.......

I can ssh login without password, but is unable to make this to happen for sshfs :-(

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: Xdebug installation guide/contrib
« Reply #34 on: April 18, 2019, 09:49:12 AM »
LOL.... I know. Staggerd I ever got mine working.

Have to say Komodo helped as it was easier to setup. Most aoplications want you to dev on your local machine.

For moumting I just use cifs - used to do it via fstab but got sssd working (see wiki)

For scp start on the CLI with root

scp -P 22 /tmp/somefile user@host://tmp/somefile

If you have setup ssh config it can be something like

scp /tmp/somefile sshHost://tmp/somefile

After you can enable a user etc etc

Have a read online for more
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline beast

  • *
  • 245
  • +0/-0
Re: Xdebug installation guide/contrib
« Reply #35 on: April 18, 2019, 09:53:21 AM »
Now sshfs can automount.

The mount point owner was root and when I changed that to my user everting was fine.....

Some times I just hate Linux ;-)

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: Xdebug installation guide/contrib
« Reply #36 on: April 18, 2019, 10:01:49 AM »
Hahahaha.... me too.

But then I get on a Windows machine once in a blue moon and in 30 seconds remember why I swore never, ever, again...........



...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: Xdebug installation guide/contrib
« Reply #37 on: April 18, 2019, 10:05:32 AM »
PS. If you want to chat I can give you a login to my Rocket.Chat instance.

Get my safeandsound email from bugs and mail me a name and I'll setup a login.

Easier when batting stuff like this about.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline beast

  • *
  • 245
  • +0/-0
Re: Xdebug installation guide/contrib
« Reply #38 on: April 18, 2019, 10:07:30 AM »
And now when I try to edit /etc/fstab I end up in recovery mode and have to delete my new sshfs entry......

Really up hill this process ;-)

Offline beast

  • *
  • 245
  • +0/-0
Re: Xdebug installation guide/contrib
« Reply #39 on: April 18, 2019, 10:17:31 AM »
PS. If you want to chat I can give you a login to my Rocket.Chat instance.

Get my safeandsound email from bugs and mail me a name and I'll setup a login.

Easier when batting stuff like this about.

You mean from Bugzilla?

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: Xdebug installation guide/contrib
« Reply #40 on: April 18, 2019, 10:33:28 AM »
Yeah look for jcrisp @ safeandsoundit
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline beast

  • *
  • 245
  • +0/-0
Re: Xdebug installation guide/contrib
« Reply #41 on: April 18, 2019, 11:39:27 AM »
And now I have auto mounting in fstab working in Ubuntu - that was not so easy.

But the problem is still the same when I use the sshfs location.

It breaks execution but I can not control anything E.g. (run, step etc)

Need some advice here!

NB: Have sent ReetP an email to continue this chat at Rocket.Cloud