Debugger steps don't match the code

General discussion on Zend Studio

Moderator: natalia_b_zend

Debugger steps don't match the code

Postby marmin on Tue Dec 18, 2012 11:16 am

Hello,

I'm using the trial of Zend Studio 9 and I have a problem when I try to debug a website.
The debugger stops, but when I step through the code Zend Studio steps to wrong lines.

I took a screenshot and marked the steps the debugger goes.

I'm using XAMPP on Windows with php 5.2 as module.
I also tried xdebug but the problem is the same.

If the problem can't be solved than Zend Studio is useless for me.

Thanks in advance.
Attachments
Debug.png
Debug.png (31.86 KiB) Viewed 887 times
marmin
 
Posts: 6
Joined: Tue Dec 18, 2012 11:11 am

Re: Debugger steps don't match the code

Postby marmin on Tue Dec 18, 2012 11:42 am

It seems that Zend Studio don't recognizes the comments :-(

When I remove the comment the steps suite to the code ...
marmin
 
Posts: 6
Joined: Tue Dec 18, 2012 11:11 am

Re: Debugger steps don't match the code

Postby marmin on Tue Dec 18, 2012 3:37 pm

It seems that Zend Studio can't handle comments with # or //
When I use /* .... */ than the debugger gets the correct lines.
marmin
 
Posts: 6
Joined: Tue Dec 18, 2012 11:11 am

Re: Debugger steps don't match the code

Postby totalsupport on Wed Jan 09, 2013 11:37 am

I did some tests (never used the # to comment lines before) but it's working fine over here (ZS 9.04). Using // and /* ... */ has never been a problem in any setup here.

It might help if you could add some more details. Which debug module are you using?
Bram Tops
Lead Developer and CTO

If your problem has been resolved or if you've found your own solution, please let us know! Adding that final post will greatly increase the quality of the information you find here and will help many other users.
totalsupport
 
Posts: 119
Joined: Thu Aug 20, 2009 2:38 pm

Re: Debugger steps don't match the code

Postby marmin on Wed Jan 09, 2013 11:45 am

I tried ZendStudioTS and xDebug.

Maybe it's a Windows only problem.
I wanted to try if it is the same when I run the Webserver under linux, but I don't had time to set one up yet.
marmin
 
Posts: 6
Joined: Tue Dec 18, 2012 11:11 am

Re: Debugger steps don't match the code

Postby marmin on Thu Jan 10, 2013 10:47 am

I think I found the problem.

I created the files using Notepad++, I don't know why but the EndOfLine encoding was set to Mac-Style.
I changed it to Windows and now the debugger gets the right line of code ;-)
marmin
 
Posts: 6
Joined: Tue Dec 18, 2012 11:11 am


Return to Zend Studio

Who is online

Users browsing this forum: No registered users and 3 guests