In My program i open a file and certain changes are being written to the file , so when i debug the program in netbeans (7.1) i want to see the contents at each stage , as i go through the break points
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It sounds like you want to see the real time changes to the contents of a file as you step through your program in a debugger. In general the debugger is not great at displaying the contents of a file. The debugger is designed to display the state of the running program and not the state of external items such as the file system.
However you can easily watch the contents of the file through an external editor such as gVim or likely the actual IDE you’re using. Most editors will detect the contents of the file changing on disk and prompt you to reload when it changes.