Page 1 of 1

Cannot watch/view variables when debugging PHP code

PostPosted: August 13th, 2013, 12:19 pm
by rundaqvisten
For sometime now I have not been able to watch any PHP-variables when debugging in visual studio (2012 professional).

I started out using just PHP Tools, but then we advanced to Phalanger and now I have both products installed. Could this be causing the problem?

I can step through the code just fine and I can debug my C# code as usual, but when i step into the php code I can't see the value of any variable.

Would appreciate some help please.

Kind regard
/Mattias

Re: Cannot watch/view variables when debugging PHP code

PostPosted: August 13th, 2013, 12:32 pm
by Jakub Misek
PHP Tools and Phalanger Tools can be installed together.

Watching variables in Phalanger is limited due to .NET debugger itself. It depends whether you are debugging in 64bit or 32bit mode (for web app, it can be set in your IIS / Application Pool / Settings / Enable 32-bit applications), (for console app, it is automatically forced to run as 32bit app in debug mode)

32bit mode allows watching local and global variables as usual
64bit mode only allows Locals Window to be used.

Thanks,