RE: Debugger.Break:
Yes, althought I do sometimes comment it out...I wonder if the problem is with building with "debugBuild=True" without the "Debugger.Break" statement and then trying to debug later...could be that it is the combination of building a debug build and not debugging that is causing the problems.
Perhaps I am debugging incorrectly.
For me, I sometimes step into the debugger, other times I just output the code...I only step into the debugger when I have a "bug" to track down, so many times I just build and let the code output and see if it does what I want (I also put various _outputWriter() statements in to check status).
I also have my "Task" set to "debugBuild="false"" and try to set this with the "Single Task" execution parameters - I assume the one in the "Single task" params overwrites the one in the "Task" - is that correct?
I will try the following today and post my results:
1) Open a fresh Template Studio (with the DLL files deleted prior to opening)
2) Set all the debugBuild= to FALSE
3) Build numerous times
4) Set debugBuild="True" and set Debugger.Break
5) Debug and step into debugger.
6) Exit Debugger
7) Try debugging again
I will also try steps 1-3 with the following changes to steps 4ff
4) Set debugBuild=True, NOT set Debugger.Break
5) Build code (it should not break, although it will build PDB files
6) Add Debugger.Break into code
7) Rebuild, try to debug - this time it should step into the debugger
8 ) Exit Debugger
9) Try debugging again - if I am correct, this should generate the error.
I'll let you know results.
Thanks for your help.
Andrew.