KamalDevelopers / GodsEyeView

The next most holy operating system.
The Unlicense
49 stars 5 forks source link

How do you debug the code? #5

Closed foragerDev closed 3 years ago

foragerDev commented 3 years ago

I am trying understand How did you Implement Mouse Driver, And I am trying to add functionality of 2 double click, and Right, left and wheel button. But I am not able to Debug the code to go through step by step to understand how code works.

DevGev commented 3 years ago

You could debug GevOS through any debugging tool such as gdb. However I generally don't use debuggers instead I tend to use the klog() function (Kernel Log) to print values through the qemu serial port. It's your choice if you want to use a debugger or not.

Edersteiner commented 3 years ago

Using GDB might be hard, you would probably need to implement some features in GevOS to make that work. OSdev wiki should have articles about GDB

foragerDev commented 3 years ago

yeah, sure, if you could write about that.