Could someone tell me what the proper steps are for debugging an LPT Template?
I am doing the following (as per the documentation):
1) Created a Task in my .config file with debugBuild = "true"
2) Add <[ System.Diagnostics ]> to the top of my .LPT file
3) Select "Default Tasks - Compile and Run..."
Set the following options:
failWhenExistant = false
templateID = Dvx_TestCreateMinimal
debugBuild = True
DestinationFolder = UnitTests\Support
emitType = generic
4) I then select "Run Task"
I get the following results:
1) It never starts the debugger, ever
2) If I select "Generate" instead of "run single task" it will start the debugger, but when it does, it just loads "TemplateStudio.exe" and then tells me there is no code, I can go to the dir and see the .DLL and .PDB files, so I know the debug code is there...but something isn't right.
3) This is the most annoying result: SOMETHING locks the .DLL file that it built (no matter what) so that when I try to rebuild again, I get the very annoying:
Error BC31019, at line: 0, pos: 0: Unable to write to output file 'D:\Temp\LGP\DvxUnitTests\UnitTests\Support\LptTemplateAssembly.dll': The process cannot access the file because it is being used by another process.
That's helpful...and if I check ProcessExplorer, guess who has it locked...TemplateStudio.exe! So it locks it's own file and then can't right to it...Argh!
So...can someone tell me how to debug my templates?
The docs aren't bad, but they pretty much tell you that the easiest way to figure things out is to debug your template..which I am willing to do...but so far all I have done is waste my entire afternoon beating my head against a brick wall since the debugger never attaches and functions...ever.
Thanks,
Andrew.