Original Post
Preface: I've had this idea of a debugging tool for some time, my post from Feb 2nd that I'm just now getting around to [lol], and I'm just now thinking of doing it. However, I wan to see what you guys think and if the idea is there or not. The idea is real time debugging and tracking of variables in a client program by a host program. This is how it will work. Client Program: The client program is your program that you want to debug. There will be a class that wraps up all of the debugging stuff. For any variable that you want to track in realtime, you will register it's address and size to the class. You can assign it a name as well to know what it is. So for an example of syntax for registering an int variable: RegisterVariable( "variable", &variable, sizeof(int) );. Then when you want tracking to stop, UnregisterVariable( "variable" ); The point of having the unregister is so when the variable goes out of scope, you will not want to be reading that memory. Host Program: The host program is the debugging program that you will have access to the variables that you register in the client program. You first have to call a 'Start' function that you pass in the client programs window caption, class, as well as the file generated on the client side with all of the information for debugging. After that, it's just a matter of calling a 'Track' function with the name of the variable you want to track, and then you can see what the value's are. Addition: The idea will be the host program can have a nice neat GUI that foramts the data from the client program, so you basically have a window with edit boxes that show the current values of the tracked variables. More functionality can be added, such as full tracking of variable changes and stuff like that. Would this be a tool that would serve a good purpose, or would it be more trouble than it's worth? Any thoughts or comments on this idea? Thanks for your time! [Edited by - Drew_Benton on June 14, 2005 10:52:11 PM]