Enhancement to VC debuger

Back Up Next

You can customize how VC debbuger displays OWL Objects. Just edit file SharedIde/BIN/Autoexp.dat for VC 5.0 or MSDev98/BIN/autoexp.dat for VC 6.0.
    For example I did this  additions:

; for OWL
OWL::string =<p->array,st>
OWL::TPoint =x=<x> y=<y>
OWL::TRect =top=<top> bottom=<bottom> left=<left> right=<right>
OWL::TSize =cx=<cx> cy=<cy>
OWL::TWindow =<,t> Handle=<Handle,x> Title=<Title,st>
OWL::TModule =<,t> Name=<Name,st> Handle=<Handle,x>
OWL::TMenu =<,t> Handle=<Handle,X> ShouldDelete=<ShouldDelete,i>
OWL::TColor =<Value,x>
OWL::TGdiBase =<,t> Handle=<Handle,x> ShouldDelete=<ShouldDelete,i>
OWL::TApplication =<,t> <Name,st>
OWL::TThread =<,t> Handle=<Handle,x> Stat=<Stat> ThreadId=<ThreadId,x>
OWL::TGadget =<,t> Id=<Id,u> Bounds=<Bounds>
OWL::TResId =Num=<Num,u> Str=<Str,st>

; templates
OWL::TObjectArray<*> =<,t> ItemCnt=<ItemCnt>
OWL::TSortedObjectArray<*> =<,t> ItemCnt=<ItemCnt>
OWL::TPtrArray<*> =ItemCnt=<,t> <ItemCnt>
OWL::TSortedPtrArray<*> =<,t> ItemCnt=<ItemCnt>
OWL::TIPtrArray<*> =<,t> ItemCnt=<ItemCnt>
OWL::TISortedPtrArray<*> =<,t> ItemCnt=<ItemCnt>
OWL::TPointer<*> =<P>
OWL::TAPointer<*> =<P>

What this? You can read what every symbol mean in autoexpand.dat, and see how Microsoft team use it for MFC.
For example without additions debuger windows show:
In files:
string   name = "yura";
TEdit* wnd = new TEdit("Some wnd");
wnd->Create();
TPoint point(1,2);
TResId resId = 123;

Debuger shows:

name 0x001231
wnd 0x012341
point 0x07574567
resId 0x0777777345

Now with additions:

name {"yura"}
wnd {TEdit Handle=0x46564 Title="Some wnd"}
point {x=1 y=2}
resId {Num=123 Str=""}
Revised: December 04, 1999.


Copyright © 1998-2001 Yura Bidus. All rights reserved.