Issues with stepping in debugger.

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

Issues with stepping in debugger.

Postby WaldemarHasz » December 3rd, 2017, 9:27 pm

Hi guys

Since updating to 1.25.10447 (before I was on 1.23.9750 or 1.24.10137 I don't remember) I have a very, very annoying thing happening... lots of times (90% of the times) I need to press F10 multiple times for the debugger to step just 1 line in code.

Just now I've do a simple test and I had to press F5 13 times for the debugger to continue.

Can you please fix this.

Br
Waldemar
WaldemarHasz
 
Posts: 21
Joined: December 3rd, 2017, 9:14 pm

Re: Issues with stepping in debugger.

Postby Miloslav Beno » December 4th, 2017, 11:49 am

Hi Waldemar,

Thanks for the feedback. Let me take a look at it and get back to you ASAP. If you could provide me with more information e.g. VS version, PHP version or anything that could help me replicate this would be helpful.

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

Re: Issues with stepping in debugger.

Postby Miloslav Beno » December 4th, 2017, 1:23 pm

Hi Waldemar,

I wasn't able to replicate. We could try to make online session to check this if you don't mind?

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

Re: Issues with stepping in debugger.

Postby WaldemarHasz » December 4th, 2017, 11:23 pm

c
Last edited by WaldemarHasz on December 4th, 2017, 11:28 pm, edited 1 time in total.
WaldemarHasz
 
Posts: 21
Joined: December 3rd, 2017, 9:14 pm

Re: Issues with stepping in debugger.

Postby WaldemarHasz » December 4th, 2017, 11:27 pm

Hi Milos

Here are some data:
• W10: VS2017
• Centos in VM (6.9 x64): XDebug (2.1.4); PHP (5.3.29)

php.ini:
;--------------------------------------------------------------------------------------------------------
; XDebug
;
; Notice:
; Port 9001 is used because nginx server uses port 9000 for FastCGI.
;--------------------------------------------------------------------------------------------------------
zend_extension=/usr/lib64/php/20090626/xdebug.so
xdebug.remote_log="/tmp/xdebug.log"
xdebug.profiler_enable = 0
xdebug.remote_enable=1
xdebug.remote_host = 192.168.2.1
xdebug.remote_port = 9001
xdebug.remote_autostart = 1
xdebug.remote_mode = req
xdebug.idekey="php-vs"

To link source code that resides in virtual machine I have Samba installed.
Then in Windows I I create a virtual folder:
mklink /d "E:\Podjetja\Nevron\Hospitality Interface\Design\PHP - VS2017\Iptv\Source" "\\192.168.200.254\Root\var\www\portal\library\Iptv"

So I get a Source folder under the project (unfortunately I couldn't make PHP tool to understand that files are on shared folder.. it would be cool if that could be possible).

I'm also getting a lot of "The program '[15784] php_remote.exe' has exited with code -1 (0xffffffff)."

Then in the middle of Single stepping if I wait a little I get a lot of:
The program '[3880] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[16072] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[10576] php_remote.exe' has exited with code -1 (0xffffffff).
The program '[4104] php_remote.exe' has exited with code -1 (0xffffffff).
The program '[15784] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[13832] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
.
.
.

And a lot of times the keypress simply doesn't work.


Then in VS I define Xdebu port: 9001 and use manual path mapping.


Do you want me to do any test/enable logging/....?

Best regards
Waldemar
WaldemarHasz
 
Posts: 21
Joined: December 3rd, 2017, 9:14 pm

Re: Issues with stepping in debugger.

Postby Miloslav Beno » December 6th, 2017, 9:37 am

Hi Waldemar,

I will have your environment recreated here and I will try to replicate this.

You can ignore the message from output pane. We should get rid of it as it's not important and "normal" during remote debugging.
The program '[15784] php_remote.exe' has exited with code -1 (0xffffffff)."

I know you've already mentioned it, but it would help tremendously to know what version you had previously and if this worked there. So I can audit changes in the debuger since then.


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

Re: Issues with stepping in debugger.

Postby WaldemarHasz » January 8th, 2018, 7:06 pm

Hi Miroslav

Sorry for the late response.. didn't see the notification email.

Previously I was using the version from the spring... have no clue which version, but I've updated to the new one after around 6 months.

Best regards
Waldemar
WaldemarHasz
 
Posts: 21
Joined: December 3rd, 2017, 9:14 pm

Re: Issues with stepping in debugger.

Postby WaldemarHasz » January 30th, 2018, 4:56 pm

Hi Miroslav

Is there a way I could enable some kind of a log of your PHP tool and send the log file as pressing F5 30 #%@!#%@!#% times every time I want to continue is not the most productive way of spending the life.

BrW
WaldemarHasz
 
Posts: 21
Joined: December 3rd, 2017, 9:14 pm

Re: Issues with stepping in debugger.

Postby DanTalash » January 31st, 2018, 5:31 pm

I have also noticed this issue, but for me the stepping controls appear to work fine.

In my case the continue debugging (F5) button and hotkey seem to take a variable number of clicks/presses to actually continue the script. The number of clicks/presses required is usually 2-4, but has sometimes been higher. I have resorted to hitting it a bunch whenever I need to resume execution, but a proper solution would be preferable.
DanTalash
 
Posts: 23
Joined: November 25th, 2015, 6:19 pm

Re: Issues with stepping in debugger.

Postby WaldemarHasz » February 1st, 2018, 11:38 am

Pressing F5 and all the time I'm getting just:

The program '[6284] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[15368] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
Auto-attach to process '[9152] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[10760] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[17060] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[9860] php_remote.exe' has exited with code -1 (0xffffffff).
The program '[6852] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[17396] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[7676] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[8832] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
Auto-attach to process '[17088] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[8468] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[17176] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[14448] php_remote.exe' has exited with code -1 (0xffffffff).
The program '[8304] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[16236] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[692] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[4644] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[14400] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[12784] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
Auto-attach to process '[2084] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[8636] php_remote.exe' has exited with code -1 (0xffffffff).
The program '[15464] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[3744] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[10904] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[12372] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
Auto-attach to process '[6368] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[4996] php_remote.exe' has exited with code -1 (0xffffffff).
The program '[12200] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[16524] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[12936] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[13704] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[9264] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[6560] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[4024] php_remote.exe' has exited with code -1 (0xffffffff).
The program '[14708] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[11068] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
Auto-attach to process '[2772] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[2232] php_remote.exe' has exited with code -1 (0xffffffff).
The program '[8104] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[15348] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
Auto-attach to process '[10416] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[15120] php_remote.exe' has exited with code -1 (0xffffffff).
The program '[8232] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[8164] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[5600] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[5696] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
Auto-attach to process '[7604] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[14716] php_remote.exe' has exited with code -1 (0xffffffff).
The program '[7948] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[17232] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[15800] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[7128] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[13932] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[12084] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[10884] php_remote.exe' has exited with code -1 (0xffffffff).
The program '[3924] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[15924] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
Auto-attach to process '[15844] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[12852] php_remote.exe' has exited with code -1 (0xffffffff).
The program '[1228] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[6044] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
Auto-attach to process '[12736] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[12896] php_remote.exe' has exited with code -1 (0xffffffff).
The program '[6616] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[924] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[4472] php_remote.exe' has exited with code -1 (0xffffffff).
The program '[11952] php_remote.exe' has exited with code -1 (0xffffffff).
The program '[10944] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[4968] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[15076] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[5096] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
Auto-attach to process '[16460] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[13900] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[4500] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[17060] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[7468] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[2988] php_remote.exe' has exited with code -1 (0xffffffff).
The program '[10644] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[1272] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
Auto-attach to process '[4372] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[8504] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[17388] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[8832] php_remote.exe' has exited with code -1 (0xffffffff).
The program '[9152] php_remote.exe' has exited with code -1 (0xffffffff).
The program '[15368] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[16096] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[14640] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[11240] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
Auto-attach to process '[16648] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[12260] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[13416] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
Auto-attach to process '[8104] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[16236] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[8832] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[7252] php_remote.exe' has exited with code -1 (0xffffffff).
The program '[14056] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[17060] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[12228] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[2988] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[13176] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[9172] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[17088] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[9736] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[11988] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[15588] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[11784] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[17180] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[11972] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[17352] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
Auto-attach to process '[13732] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
Auto-attach to process '[7324] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[5568] php_remote.exe' has exited with code -1 (0xffffffff).
The program '[17176] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[1664] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[12548] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[15228] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[17396] php_remote.exe' has exited with code -1 (0xffffffff).
Auto-attach to process '[12592] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
Auto-attach to process '[4472] php_remote.exe' on machine 'WALDEMAR-PC' succeeded.
The program '[15424] php_remote.exe' has exited with code -1 (0xffffffff).
....
WaldemarHasz
 
Posts: 21
Joined: December 3rd, 2017, 9:14 pm

Next

Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 4 guests

cron

User Control Panel

Login

Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 5 minutes)
Most users ever online was 62 on January 7th, 2012, 10:54 pm

Users browsing this forum: No registered users and 4 guests
Phalanger