Skip to main content

DEBUGGING

Debugging is a methodical process of finding and reducing the number of bugs, or defects, in a computer program or a piece of electronic hardware thus making it behave as expected. -->
The debugging skill of the programmer is probably the biggest factor in the ability to debug a problem, but the difficulty of software debugging varies greatly with the programming language used and the available tools, such as debuggers. Debuggers are software tools which enable the programmer to monitor the execution of a program, stop it, re-start it, set breakpoints, change values in memory and even, in some cases, go back in time. The term debugger can also refer to the person who is doing the debugging.
Generally, high-level programming languages, such as Java, make debugging easier, because they have features such as exception handling that make real sources of erratic behaviour easier to spot. In lower-level programming languages such as C or assembly, bugs may cause silent problems such as memory corruption, and it is often difficult to see where the initial problem happened. In those cases, memory debugger tools may be needed.
In certain situations, general purpose software tools that are language specific in nature can be very useful. These take the form of static code analysis tools. These tools look for a very specific set of known problems, some common and some rare, within the source code. All such issues detected by these tools would rarely be picked up by a compiler or interpreter, thus they are not syntax checkers, but more semantic checkers.
Often the first step in debugging is to attempt reproduce the problem. This can be a non-trivial task
After the bug is reproduced, the input of the program needs to be simplified to make it easier to debug. For example, a bug in a compiler can make it crash when parsing some large source file. However, after simplification of the test case, only few lines from the original source file can be sufficient to reproduce the same crash
After the test case is sufficiently simplified, a programmer can use a debugger to examine program states (values of variables, the call stack) and track down the origin of the problem. Alternatively tracing can be used. In simple case, tracing is just a few print statements, which output the values of variables in certain points of program execution.


Comments

Popular posts from this blog

चाहने वाला हूँ तेरा, देख ले दर्द ज़रा; तू जो वेइखे एक नज़र कारा लखान दा शुक्र सोहनीये! देख तू कह के मूझे , जान भी दे दूंगा तुझे; तेरा ऐसा हूँ दीवाना, तुने अब तक ये ना जाना हीरीए !!! --------------------------------------------- आ सोनी तेनू चाँद की मैं चूड़ी पहरावा, मैनू कर दे इशारा ते मैं डोली ले आंवा !!!

Career Impact in times of Corona Virus

In the last few days, as India comes to terms with Covid-19 and struggles with dealing with this pandemic, one question several people are asking me relates to its impact on their careers. Coronavirus is what you hear everywhere these days. Public distancing and lockdowns are being touted as effective preventive measures to limit its spread. The highly contagious virus has brought the entire global economy to its knees. In this environment, what happens to our careers? Feb-March-April is a period when several corporates roll out their annual appraisal. Salaries are hiked, promotions granted, and career advancements planned. This year, however, things look not so promising for anyone as companies brace for adverse effects on balance sheets and glaring losses due to prolonged disruptions in businesses. Here is what you need to do, confined in your homes to thrive your career -  1) Work from home - Don't just pretend to work. Get some real work done. When this is all

STANDARD CONTENTS IN A GUEST ROOM

IN A 5 – STAR HOTEL GUEST ROOM:- 1. BED:- 1. Mattress (1) 2. Maters protector (1) 3. Bed sheet (2) 4. Night spread (1) 5. Blanket (1) 6. Pillows (2) 7. Bed cover (1) (Boisters) 2. ENTRANCE DOORS:- 1. Lire exit plan 2. DND card on the door know 3. Collect my laundry card 4. Please clean my room card 3. WARDROBE:- 1. Coat hangers 2. Skirt trouser hangers 3. Laundry bags 4. Pot 5. Extra blanket and pillows 6. Bed slippers 4. LOUNGE :- 1. Sofa,