NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Help setting up debugger for CLI script *resolved*


Joined: 27 Feb 2014
Posts: 4
Reply with quote
Project details:

PHP script, purely CLI, no URL associated with the script. In fact, no Apache installed on server.

project root:
/home/user/code/cliapps

scripts are placed in subfolders
script1/script1.php
script2/script2.php

ftp account points to
/home/user/code/cliapps

all that on remote server (can't run scripts locally due to access restrictions, data files availability, db connection restricted to specific IP etc.)

Project's debugger settings:

Run target: "Remote server"
Default file or URL: empty
Root URL: empty

Mapping for debugger:
Remote root directory: /home/user/code/cliapps
Terminal account: term_acct1 (set and tested)
Php executable: php

on the remote server I run script from /home/user/code/cliapps
php script1/script1.php

all the time I initiate debugging session it says:
"New debug session with //cloud01.myserver.com/script1/script1.php has started. But IDE could not find the project for the web debugging. Breakpoints and other features may fail to work."

and breakpoints fail to work indeed

Log:
Debugger Starting debug session (20140630), script: script1/script1.php, server: cloud01.myserver.com, sapi: cli
Debugger Failed to find a way to load "/home/user/code/cliapps/script1/script1.php" remote file. Opening it using debugger protocol


PLEASE, help. I don't see what I'm missing Sad
View user's profileFind all posts by enaumchukSend private message


Joined: 27 Feb 2014
Posts: 4
Reply with quote
Ok, figured out a workaround way to do that

starting script with absolute path does the trick
e.g.
php /home/user/code/cliapps/script1/script1.php
View user's profileFind all posts by enaumchukSend private message
Re: Help setting up debugger for CLI script
Site Admin

Joined: 13 Jul 2003
Posts: 7901
Reply with quote
enaumchuk wrote:
"New debug session with //cloud01.myserver.com/script1/script1.php has started. But IDE could not find the project for the web debugging. Breakpoints and other features may fail to work."

what product version & build # do you use?

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 27 Feb 2014
Posts: 4
Reply with quote
v14.0 build 14029, 64bit

I had this problem with a previous build, after upgrade it's gone
View user's profileFind all posts by enaumchukSend private message
Help setting up debugger for CLI script *resolved*
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic