Debugging PHP

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

Debugging PHP

Postby shaunpeoples » December 13th, 2012, 7:28 pm

Hi,

When I am debugging, the only way to continuously and reliably ensure that break points are being hit is to manually terminate the PHP Tools Debugger tray icon and choose exit.

Simply stopping the running program I am debugging reports that it was stopped in the Debug output window:

The program '[9048] php.exe' has exited with code -1 (0xffffffff).
The program '[9132] PHP.Debugger.Systray.exe' has exited with code -1 (0xffffffff).

However, subsequent runs of fail to hit break points. I am running Windows 8, Visual Studio 2012 Ultimate, and running it as Admin.

Any thoughts on how to ensure that I can debug without having to kill the tray icon each time?

Thanks.
shaunpeoples
 
Posts: 7
Joined: December 10th, 2012, 5:27 pm

Re: Debugging PHP

Postby shaunpeoples » December 13th, 2012, 7:30 pm

Forgot, my current PHP Tools Setup is:

[X] Apply server settings to all users

[X] Use PHP built-in Web Server

[X] Specific port 9000
shaunpeoples
 
Posts: 7
Joined: December 10th, 2012, 5:27 pm

Re: Debugging PHP

Postby shaunpeoples » December 13th, 2012, 9:35 pm

Also, in selecting the "Exit" from the tray menu, the menu loses focus and needs to be selected from behind the tray icon group menu.
shaunpeoples
 
Posts: 7
Joined: December 10th, 2012, 5:27 pm

Re: Debugging PHP

Postby shaunpeoples » December 13th, 2012, 9:43 pm

Additional info: This only occurs when terminating the debugging session while running (close browser) while the IDE is sitting on a break point.

Repro steps:

-Hit break point in IDE
-Stop in debugger
-Attempt to run again
-No break point hit

or

-Hit break point in IDE
-Close browser
-Attempt to run again
-No break point hit

While that may seem unnecessary, long running process are necessary to be terminated in debugging before the page is rendered.

Thanks,

Shaun
shaunpeoples
 
Posts: 7
Joined: December 10th, 2012, 5:27 pm

Re: Debugging PHP

Postby shaunpeoples » December 13th, 2012, 9:54 pm

Additional:

Continuing execution from the break point, then attempting to stop debugging hangs the IDE which eventually presents the "force debugging" dialog while it waits to attempt to stop debugging.

-Shaun
shaunpeoples
 
Posts: 7
Joined: December 10th, 2012, 5:27 pm

Re: Debugging PHP

Postby Miloslav Beno » December 13th, 2012, 11:43 pm

Hi Shaun,

Thank you very much notifying us.

I've set up the same environment as you have, I'll try to reproduce the problem and inform here about the progress.

Thanks again!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Debugging PHP

Postby Miloslav Beno » December 14th, 2012, 6:41 pm

Hi Shaun,

I was able to replicate and fix the issue with the debugging. We'll release the update for it pretty soon. We just also want to address "Exit menu loosing focus" thing. If you'd like we can give you the update before public relase, so you can try it out if it works for you.

Thank you very much
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Debugging PHP

Postby Miloslav Beno » December 14th, 2012, 7:24 pm

Good, so "exist loosing focus" thing is fixed too now...
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Debugging PHP

Postby shaunpeoples » December 17th, 2012, 2:39 am

Awesome, sounds great. I'm more than willing to try out the fix.

Thanks again.
shaunpeoples
 
Posts: 7
Joined: December 10th, 2012, 5:27 pm

Re: Debugging PHP

Postby Miloslav Beno » December 17th, 2012, 8:16 pm

Hi Shaun,

there was a minor update today and it's including fixes we've discussed here. So you can give it a try. Give me know if it works fine for you now.

Thanks
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Next

Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 55 guests

cron

User Control Panel

Login

Who is online

In total there are 55 users online :: 0 registered, 0 hidden and 55 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 55 guests