I am in the process of creating an ATL COM Dll that I call from VB.

The DLL sets up Windows Sockets, and processes messages received. I'm receiving from a constant data source, so I'm not interested in exiting from the DLL quickly.

I am interested in viewing variables as the DLL is running - like a counter value.

I'm in the process of introducing threading, or wrapping the DLL in an ActiveX exe so that control returns to the VB Gui immediately, but I still want to keep tabs on the DLL, and I'm not sure how.

Any ideas? I'm not having much luck with MSDN.