Search code examples
.netcomdebuggingpowerbuilderdiagnostics

PowerBuilder equivalent to Debug.WriteLine?


I've got a PowerBuilder project that calls my .Net class library exposed to COM. I'm very new to PowerBuilder and just starting to pick it up. Id like to create some simple tests for my COM calls and I've looked for quite a while and can't find anything that is similar to the VS Diagnostics methods.

Does this functionality exist?

Thanks a lot!


Solution

  • You can use the "/pbdebug" runtime switch, which creates a log file. Other than that you have to roll your own logging, PB (IMO) is notoriously hard to perform unit testing.