A Windows CSUB may be debugged using any debugger that can work with Windows 32-bit DLLs. Simple debugging may be done using the Windows sprintf and MessageBox functions.
For large amounts of debugging, it may be better to write a WinMain program and link it directly to the CSUB as a static object, and then debug the WinMain program with the integrated debugger available with most compilers.