Hi there,
I’m trying to debug a template engine (.lpt) without success. Yes, the process is attached and I enter in debug mode, stopping at the following line of the DotNetTemplateEngine class:
templateObject.___RUN(executingGenerator, parameters, outputWriter, null);
…what I assume is correct. So from here if I press F5 or step into/over the code, it seems to have no effect; the code runs without stopping inside the template; it justs runs till the finally (outputWriter.Close())
I’ve read several posts about this and tried many of the solutions already posted but no luck so far.
Here’s what I did:
1.Create a .lpt with <[ System.Diagnostics ]> at the beginning and a
<% Debugger.Break(); %> somewhere in the code.
2.Create a task (.tasks file) with the DotNetTemplateEngine task performer.
3.Create a debug preset with debugBuild=true and templateAssemblySourceFileFormat= templateClassesSource.[extension]
4.Create a template bindings for the .lpt
5.I generate the code, the breakpoint is hit and I always get the previously mentioned behaviour (along with a headache ).
What I can’t find is any .pdb file. I checked in c:\temp\GeneratorTemp but nothing, so I wonder if this file is generated by the template studio when compiling .lpt’s or when generating the code (F7) .
I spent a morning trying to make it work, please, any help will be welcomed!
Thank you very much.
Attachments
Filename |
File size |
Added on |
Approval |
Files.zip
|
2,265 |
12-Jul-2007 20:29.12 |
Approved |