One of the first questions I asked when introduced to Boo was exactly that. How can I debug my own code when that code is executed during the compilation of... err... some other of my own code? Last time I checked, there's no "Compile this code in debug mode" button anywhere.
Turns out, as a last resort, you can place a Debugger.Launch() somewhere in the code that's run compile-time. When the Debugger.Launch()is discovered during the compilation, you'll be asked to start a debug session with Visual Studio. Just remember to remove the Debugger.Launch()call afterwords :)
I'll bet the über-boo-hero himself has a much better solution, though.
2 comments:
Yes, I'd like to know the better way to debug the Boo in compilation.
hyh961 - I'll be the first to admit it's not pretty, though ;)
Post a Comment