I am using CodeSmith 3.2.7 and have the following problem:
I set a breakpoint in a template using Debugger.Break(); and have Debug="True" in the template directive at the top of the file. When I execute the template, I get the dialog box that pops up asking me about debugging, only I get the following as my choices:
New instance of Microsoft CLR Debugger 2003New instance of Visual Studio .NET 2003
I expected, since I have it installed and am using 2.0 stuff, that I would have seen Visual Studio 2005 in that list. I don't, and that is the main issue I am having - if I choose either of those in the list, I get an error once the debugger has opened, of course: Unable to attach to the process.
So, anyone know how I can get the 2.0/2005 stuff to show up in that list? What gives? This really sucks and I need to debug.
Robert Hinojosa ------------------------------------- Member of the Codesmith Tools, .netTiers, teams http://www.nettiers.com-------------------------------------
Well, I assume the assemblies I am creating are 2.0 because I added some generics and was able to compile them from with CodeSmith Studio... Is that a bad assumption?
I think I did the upgrade (can't recall, to be honest), how can I get this fixed?
Thanks, it would be nice to get beyond this problem!
Yeah, it brings up the same dialog with on the 2003 version debuggers. I did more looking into it and got this help page:
http://msdn2.microsoft.com/en-us/library/ssc8234s.aspx
If you read that short entry, there is a line in it that is what I am seeing:
Another debugger has registered itself as the Just-In-Time debugger. To repair, enable Just-In-Time debugging or run Visual Studio repair.
I just can't seem to find anything that tells me how to "enable Just-In-Time debugging" but I think I will eventually get this working. Thanks for your help, I am close to solving this with your help.
Robert, I don't remember which order I installed the IDEs in, but I suppose it is possible I installed 2003 after 2005. Either way, I would hope that wouldn't matter too much, or at least that I should be able to easily configure which one to use for JIT debugging. Seems easy from the way they state it in the docs, "enable JIT debugging," as if it is a simple task. Messing with the registry or the machine.config are less-than-friendly ways of doing it (though not technically challenging by any means, just tedious).
I looked at that DCOM Config section and as far as I can tell, things look okay; I am the only user on the machine (the dreaded and much-maligned running-as-administrator setup), so I didn't really think permissions were an issue, but it was a good recommendation nonetheless.
As for the registry, the Host Path setting is:
C:\WINDOWS\system32\vsjitdebugger.exe
The settings for both ".NET Debugger" and "Native Debugger" both reference the same path, albeit with parameter strings, etc. What am I looking for, exactly?
I appreciate the help!
Bill,
I appreciate your taking time to help out, and I have seen this mentioned elsewhere - before I try it, I am curious as to what else I can find out about this. It amazes me, yet doesn't at the same time, that this is such a pain - you would think toggling between the two versions would be something many people want to do and that this would be at least fairly common knowledge. But, this is Microsoft software after all . . . . :P
If I get desperate enough, maybe I will mess with this. At this point, I just don't feel that it is the solution. But then, what do I know?
Thanks,