FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

debugging opens an already opened file(data may be lost)

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
Elroy Peters
Posted via mailing list.





PostPosted: Mon Dec 08, 2008 12:29 am    Post subject: debugging opens an already opened file(data may be lost) Reply with quote

I have a problem while debugging my php website. if I start debugging and I have a file open for example page2.php.
and in page 2 I put a break point. when I start index.php and klik to go to page2.php netbeans wil open another tab for page2.php
so now I have the same file opened twice. and if I make some changes in the one file and save. and then I close the other file.
some times netbeans doesnr know wich file is wich and I end up loosing all my work in that file.

I don't know if this is already known. but I would like to share.
Back to top
Mikhail Matveev
Posted via mailing list.





PostPosted: Mon Dec 08, 2008 1:17 pm    Post subject: debugging opens an already opened file(data may be lost) Reply with quote

Hi Elroy,

I can't reproduce this issue for the last dev build. If your problems persists, could you please file issue here
http://www.netbeans.org/issues and add more details about your case?

Thanks,
Misha

Elroy Peters wrote:
Quote:
I have a problem while debugging my php website. if I start debugging
and I have a file open for example page2.php.
and in page 2 I put a break point. when I start index.php and klik to go
to page2.php netbeans wil open another tab for page2.php
so now I have the same file opened twice. and if I make some changes in
the one file and save. and then I close the other file.
some times netbeans doesnr know wich file is wich and I end up loosing
all my work in that file.

I don't know if this is already known. but I would like to share.
Back to top
areeda



Joined: 28 Aug 2008
Posts: 88

PostPosted: Sat Dec 20, 2008 4:42 pm    Post subject: More info Reply with quote

An issue has been opened: issue 154988

Here's what I added
Quote:
I'm seeing the same thing but only on Windows, not Linux. I also have the file that is being duplicated in a
subdirectory. Linux is my production system. It's a database app so I want a safe place to debug. I check it into CVS
and check it out in Windows. The only thing changed is the folder to copy the files to.

The duplicate window does seem to be the correct file and a work around seems to be to make sure to close the duplicate
window making sure to only make corrections in the original.


I can work around it as long as I always remember which file is which.

Is there any way to figure out the path to an opened file?

As far as I can tell if you make a change to the phantom file and save it it doesn't go anywhere. The original file is not modified and AFAIK a duplicate is not being saved.

Joe
Back to top
View user's profile Send private message
lgammo



Joined: 01 Apr 2009
Posts: 1

PostPosted: Wed Apr 01, 2009 8:02 am    Post subject: Reply with quote

Hello,

For me the problem happened while debugging a project on a local server. I have the source project in a directory (say: c:\project) and I check the copy source to another location (say: c:\webroot) so that the HTTP server sees the site.

What is happening is that while debugging, I get the files from the web root opened in the IDE. I would have expected the original source files to open. Of course, the same file can be opened from the source directory leading to the complaint that you have to check which file you are editing.


Shocked
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB