For debugging Phalanger site, you may upgrade to Phalanger Tools (
http://www.devsense.com/products/phalanger-tools) This contains IntelliSense of Phalanger libraries and .NET, etc.
Anyway if you are not able to retrieve location of a parse error, that's not an issue inside PHP code (well it is issue in PHP code, but Phalanger should display the location). I just can't find any scenario where Phalanger does not show location of
CompileError: Syntax error: unexpected token '}'Are you able to reproduce this on Windows/IIS ? Then it is straight forward to debug site and give me info I need to solve your issue:
1. Run you site, in your browser open the page that causes the parse error
2. Open Visual Studio (do not open any solution, not needed)
3. go to Debug | Attach to Process
4. ensure Attach to: contains Managed (v4.5, v4.0)
5. find w3wp.exe (it is IIS Application Pool, so if there are more of them, you need to find the one corresponding with your site)
6. click Attach
7. go to Debug | Options and Settings, untick Enable Just My Code
9. go to Debug | Exception, tick Common Language Runtime Exceptions
10. hit F5 in your browser and send me Call Stack of any exception thrown
Thanks,