Skip to main content

Troubleshooting and debugging

Troubleshooting is the process of identifying, analyzing, and solving problems. 


Debugging is the process of identifying, analyzing, and removing bugs in a system. We sometimes use troubleshooting and debugging interchangeably. 

But generally, we say troubleshooting when we're fixing problems in the system running the application, and debugging when we're fixing the bugs in the actual code of the application.

Debuggers let us follow the code line by line, inspect changes in variable assignments, interrupt the program when a specific condition is met, and more.

System calls are the calls that the programs running on our computer make to the running kernel. 

 A reproduction case is a way to verify if the problem is present or not.

Where to check for log file in OS?

On Linux, you'd read system logs like /var/log/syslog and user-specific logs like the .xsession-errors file located in the user's home directory. On MacOs, on top of the system logs, you'd go through the logs stored in the library logs directory. On Windows, you'd use the Event Viewer tool to go through the event logs.


3 step to take in problem solving :

  1. Gathering information.
  2. Finding the root cause.
  3. performing the necessary remediation. 
Note:Understanding the root cause is essential for performing the long-term remediation.

Comments

Popular posts from this blog

Can machine think?

In the previous, blog we understood the difference between Artificial Intelligence, Machine learning and Deep learning. If you haven’t read it yet I recommend you to read it first. Now let start with today’s topic. A.I. (Artificial Intelligence) is broad branch of computer science, the goal of A.I. is to create the system that can function intelligently and independently. The concept of A.I evolved during world war 2 to break the code message sent by German. The name of the machine was enigma. It work was to decrypt the code sent by German. There a movie created on the basis of this topic. The name of the movie is "The Imitation Game”. It’s a nice movie if you interest in A.I then you should watch it. This is how the evolution of A.I. started. With the help of A.I. we are trying to create a machine which can think like human. A.I. system is created similar to human brain. Human brain can lean by reading, seeing and though experience, similarly A.I. a...

Port Forwarding

Your friend wants to connect to your computer using RDC (remote desktop connection).   Friend send request to your computer for Remote Desktop Connection to your public IP address with specific port number. A port is logical connection is used by program and service to exchange information. Ports uniquely identify    this program and services that are running on a computer. In this case remote desktop connection uses 3389. So, the request will make a way from computer to your router. Now you need to know where to forward the request for port 3389 because without any port forwarding configured your friend will not be able to connect because your router doesn’t know what to do with this request this is where port forwarding comes into play .So now we our going to tell our router to send or forward any request that is coming from 8339 and send to this computer. To do this we need to login into our router configuration page by in the routers internal IP a...