I have a set of C# code I am migrating from COM wrapped assemblies to be called directly from PowerBuilder 2019 R3 after using the C# Class Importer.
It seems to work very well, and the fact you can step into the SnapDevelop debugger from PowerScript is going to make it much easier for PoweBuidler developers to work out what the C# code is doing.
However, debugging like this only works if I build the assemblies from SnapDevelop. If I build them from Visual Studio then when I step into the C# code SnapDevelop is launched and says "Source Not Available". I am building both as x86 and in Debug not Release mode. The code itself works just fine wherever I build, it's only debugging that's an issue.
Is there anything I can do to get Visual Studio builds to work? I have a lot more tools in Visual Studio, like source control and Resharper, than I do in SnapDevelop, so it would be nice I coould get them to play together.
Thanks!
I can't recommend enough trying it "my" way - I can just step to the call in the PowerBuilder code then do a Step Into (F8) and SnapDevelop will automatucally launch and take me to the first line of code in the call. Then I can just step through the C# code. No need to have Visual Sudio or SnapDevelop opened, no need to have the source code on your PC at all as it's embedded in the debug PDB file.
I'm trying to get the PowerBuilder developers in my compamy to at least learn a little C#, and I'm hoping being able to step into already existing C# code from PowerBuilder with zero effort will help :)