Zend Studio 12 - Mobile App Debugging

General discussion on Zend Studio
russ8421
Posts: 33
Joined: Sun Aug 18, 2013 11:31 pm

Re: Zend Studio 12 - Mobile App Debugging

Post by russ8421 » Sat Dec 06, 2014 1:44 am

I have it installed locally. I created a test project and it will debug from there...sort of. There is no debug option for the mobile side. I can get it to break on the apigility side, but I can't figure out how to get it to break when I test a service. Apigility runs off of a different port than the zend port, 10088. When I debug the index.php file, I should be able to find the route, but am not quite sure how to get to it from a browser.

russ8421
Posts: 33
Joined: Sun Aug 18, 2013 11:31 pm

Re: Zend Studio 12 - Mobile App Debugging

Post by russ8421 » Sat Dec 06, 2014 1:52 am

Actually, I have a localhost project running with Zend Server.

Zend Server seems to be running off of port 10088. So I would think for a simple services project with the apigility folder name LocalProject, I should be able to debug the default customers service with a url of something like:

http://localhost:10088/LocalProject/pub ... /Customers, but that url just brings up the apigility admin interface with a 404.

User avatar
kaloyan_r
Zend Product Manager
Posts: 582
Joined: Thu May 23, 2013 12:40 pm

Re: Zend Studio 12 - Mobile App Debugging

Post by kaloyan_r » Mon Dec 08, 2014 9:27 am

Assuming you haven't modified the Simple Services application, the correct URL should be http://localhost:10088/LocalProject/customers (it's case-sensitive).
Kaloyan Raev
Zend Studio Team

russ8421
Posts: 33
Joined: Sun Aug 18, 2013 11:31 pm

Re: Zend Studio 12 - Mobile App Debugging

Post by russ8421 » Mon Dec 08, 2014 1:54 pm

Unfortunately that doesn't route to anything. I haven't changed anything in the project yet. If I test the service from Zend Studio, it gives a similar route to the one you provide, except for a different port number. Testing works. This is the URL from Test Service for customers: http://localhost:8370/customers[/:id]

However, when testing from Firefox, this doesn't work.

http://localhost:10088/LocalProject/public will open apigility but http://localhost:10088/LocalProject/customers returns a "Not Found" error message.

User avatar
kaloyan_r
Zend Product Manager
Posts: 582
Joined: Thu May 23, 2013 12:40 pm

Re: Zend Studio 12 - Mobile App Debugging

Post by kaloyan_r » Mon Dec 08, 2014 2:47 pm

russ8421 wrote:Unfortunately that doesn't route to anything. I haven't changed anything in the project yet. If I test the service from Zend Studio, it gives a similar route to the one you provide, except for a different port number. Testing works. This is the URL from Test Service for customers: http://localhost:8370/customers[/:id]
In this case Apigility is served by the PHP built-in server launched by the Apigility Editor. Hence the random port number.
russ8421 wrote: However, when testing from Firefox, this doesn't work.

http://localhost:10088/LocalProject/public will open apigility but http://localhost:10088/LocalProject/customers returns a "Not Found" error message.
How did you exactly deploy the app on Zend Server?
Kaloyan Raev
Zend Studio Team

russ8421
Posts: 33
Joined: Sun Aug 18, 2013 11:31 pm

Re: Zend Studio 12 - Mobile App Debugging

Post by russ8421 » Mon Dec 08, 2014 6:27 pm

It's not deployed. Zend Studio won't let me. It's saved to the apache2 directory for Zend Server. If I try to deploy either to local apache install ("Detected base URL is in conflict with existing "Local Zend Server" server.") or to local Zend Server (" Detected base URL is in conflict with existing "Local Zend Server" server.") I received the above error messages. By inference you're saying it must be deployed to debug? When trying to deploy to open shift.com I lose the ability to debug. So I was trying to work locally so that i can debug but it won't let me deploy.

Quite the fun circular problem to have, eh? :-)

User avatar
kaloyan_r
Zend Product Manager
Posts: 582
Joined: Thu May 23, 2013 12:40 pm

Re: Zend Studio 12 - Mobile App Debugging

Post by kaloyan_r » Tue Dec 09, 2014 10:39 am

There are two ways to avoid the conflict:
1. Create the project in the Studio workspace, not in server's document root. You can change the location from the Location drop-down list in the Project creation wizard.
2. Deploy the project with a different application URL. You can easily change this in the Deploy Application wizard.
Kaloyan Raev
Zend Studio Team

russ8421
Posts: 33
Joined: Sun Aug 18, 2013 11:31 pm

Re: Zend Studio 12 - Mobile App Debugging

Post by russ8421 » Tue Dec 09, 2014 12:40 pm

I've tried both ways and get the same error regardless. I've even tried to put it in the workspace and not select the Local PHP Server option by leaving it blank. If I choose local, or leave it blank, I still get that error message when attempting to deploy.

mila9958
Posts: 1
Joined: Sat Nov 11, 2017 2:08 pm
Contact:

Re: Zend Studio 12 - Mobile App Debugging

Post by mila9958 » Sat Nov 11, 2017 2:10 pm

Zend Studio 12.0 or above which can be downloaded from the Zend Studio Downloads page. For information on installation, see the Zend Studio Installation Guide.
Valid deployment server (e.g., local or remote Zend Server, OpenShift, etc.). For information on adding servers, see Adding PHP Servers.

Post Reply