Thanks for your your tutorial!
I am following this tutorial, and i am in tutorial 14 now.
We use c++, but how to debug c++ codes?
How to debug c++ codes?
Moderator:Moderators
Re: How to debug c++ codes?
You should follow this tutorial of how to setup the Kernel with C++ for debuging.
http://www.brokenthorn.com/Resources/OSDevMSVC.html
I tried using MSVC08 but I had error while compiling, I changed to MSVC05 and Everything works better now.

http://www.brokenthorn.com/Resources/OSDevMSVC.html
I tried using MSVC08 but I had error while compiling, I changed to MSVC05 and Everything works better now.

Re: How to debug c++ codes?
I'm using MSVC08 and it works very well. I want to debug c++ codes not compiling. The tutorial just help us to compile the codes but we can not debug it!Tubash88 wrote:You should follow this tutorial of how to setup the Kernel with C++ for debuging.
http://www.brokenthorn.com/Resources/OSDevMSVC.html
I tried using MSVC08 but I had error while compiling, I changed to MSVC05 and Everything works better now.
Re: How to debug c++ codes?
It is not possible to use step-through debugging on your kernel.
What the tutorials mean by debugging at this stage is excess printf statements around the suspect bit of code to see exactly what is going on
If you NEED step through debugging, Bochs has a commandline debugging mode that you can try and use.
~Andrew
What the tutorials mean by debugging at this stage is excess printf statements around the suspect bit of code to see exactly what is going on
If you NEED step through debugging, Bochs has a commandline debugging mode that you can try and use.
~Andrew

Re: How to debug c++ codes?
Thanks!Andyhhp wrote:It is not possible to use step-through debugging on your kernel.
What the tutorials mean by debugging at this stage is excess printf statements around the suspect bit of code to see exactly what is going on
If you NEED step through debugging, Bochs has a commandline debugging mode that you can try and use.
~Andrew