|
Documents Download Building Support Wiki Stuff |
Main /
VSNetTricksIt is possible to make the MSVC and VS.net debuggers show the value of PWLib types either in hover text or in watch lists. This is done by adding additional information to the AUTOEXP.DAT file provided as part of the Microsoft development enviromnent To insert these definitions, first open the existing AUTOEXP.DAT file for your environment MSVC 6 C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\autoexp.dat
VS.net 2003 C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Packages\Debugger\autoexp.dat
Visual C++ Express C:\Program Files\Microsoft Visual Studio 8\Common7\Packages\Debugger\autoexp.dat
For MSVC 6, open the file in a text editor and add the lines below to the end of the file: ; for PTLib PObject =<,t> PString =<theArray,s> PCharArray =<theArray,s> PContainer=<,t> size=<reference->size> ref=<reference->count> PAbstractArray =<,t> size=<reference->size> ref=<reference->count> PArrayObjects =<,t> size=<theArray->reference->size> ref=<reference->count> PIPSocket::Address = <v.four.S_un.S_un_b.s_b1,u>.<v.four.S_un.S_un_b.s_b2,u>.<v.four.S_un.S_un_b.s_b3,u>.<v.four.S_un.S_un_b.s_b4,u> PTimeInterval = <milliseconds> PTime = <theTime> For VS.net, download the AUTOEXP.DAT file from the SVN repsitory and add the contents before the [hresult] section, so that it looks as follows: Restart MSVC or VS.net, and the values of PTLib variables will now be displayed in the debugger. |