View previous topic :: View next topic
|
Author |
Message |
ramanatcs
New User
Joined: 23 Dec 2008 Posts: 7 Location: Bangalore
|
|
|
|
Hi I have faced in the interview,
Suppose a Cobol program contains 3000 lines of source code, I want to debug from 1201 to 1750 and 2300 to and 2700. How to debug without using any debugger tools. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
look for a job someplace else. |
|
Back to top |
|
|
ramanatcs
New User
Joined: 23 Dec 2008 Posts: 7 Location: Bangalore
|
|
|
|
Hi Dick,
thanks for quick reply/.............
Can you briefly explain....
I am not getting what your saying...
Thanks |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
Suppose a Cobol program contains 3000 lines of source code, I want to debug from 1201 to 1750 and 2300 to and 2700. How to debug without using any debugger |
Your options are:
1) change the code to display what you want in the appropriate lines
2) don't debug the program
3) use a debugger to focus on the lines you're interested in
4) if none of these are possible, you've been given an impossible task and as Dick says it might be time to find a job at a site with a debugger. |
|
Back to top |
|
|
acevedo
Active User
Joined: 11 May 2005 Posts: 344 Location: Spain
|
|
|
|
as it was an interview question...I'd go for option 1.
with such question...I really cannot imagine the rest of the inverview questions. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
dbzTHEdinosauer wrote: |
look for a job someplace else. |
It was really quick.. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
I did not like the question.
either desk check
or change the program, add displays, as previous posters have said.
but adding displays is rookie shit. you then have to remove them, which means you must retest the module otherwise you have an untested module.
typical question posed by someone who knows nothing about computers.
computers are not random. they do the same thing everytime. that means anything and everything about a computer is definable, explainable and predictable.
why would someone want to work for a company that asks such bullshit questions about something so 'concrete' as a computer? |
|
Back to top |
|
|
|