CodeSmith Community
Your Code. Your Way. Faster!

No Symbols Loaded - Debugging on Vista

Latest post 08-01-2008 10:50 AM by blake05. 7 replies.
  • 10-03-2007 2:24 PM

    • JeffLit
    • Top 500 Contributor
    • Joined on 02-17-2006
    • Posts 14
    • Points 490

    No Symbols Loaded - Debugging on Vista

    I must be doing something wrong but I can't get debugging to work.  I've set

    <%@ CodeTemplate src="TemplateLib/CommonSqlCode.cs" mce_src="TemplateLib/CommonSqlCode.cs" Inherits="MoM.Templates.CommonSqlCode" Language="C#" TargetLanguage="Text" Description="NetTiers main template." Debug="True" ResponseEncoding="UTF-8"%>

    I've added a Debugger.Break(); and I've changed the DbgJITDebugLaunchSetting to 2 so that I immediately get to choose my debugger.  I've tried both VS.Net and the CLR debugger but in both I get a message that no symbols are loaded so I can only show the disassembly.

    Any tips?

    • Post Points: 35
  • 10-04-2007 3:58 PM In reply to

    • likwid
    • Top 100 Contributor
    • Joined on 10-19-2003
    • Dallas
    • Posts 50
    • Points 675

    Re: No Symbols Loaded - Debugging on Vista

    Are you running 32bit Vista or 64bit Vista?  Can you provide a screenshot of the error that occurs when you attempt to debug?

    Jeff Gonzalez
    • Post Points: 35
  • 10-05-2007 12:13 AM In reply to

    • JeffLit
    • Top 500 Contributor
    • Joined on 02-17-2006
    • Posts 14
    • Points 490

    Re: No Symbols Loaded - Debugging on Vista

    32 Bit Vista Business Version 6.0.6000 Build 6000.

    When breakpoint is hit I immedately get the expected dialog which allows me to select the debugger.  In this case I used the CLR Debugger.  Then I get the attached dialog.  Expereince is exactly the same if I choose VS.Net as the debugger.  Thanks for looking into this.

    No Symbols are loaded

    • Post Points: 35
  • 03-03-2008 12:01 PM In reply to

    • bmccaig
    • Not Ranked
    • Joined on 03-03-2008
    • Posts 1
    • Points 35

    Re: No Symbols Loaded - Debugging on Vista

    I received the same error on XP.

     For me I needed to manually open the relevant source files within the debugger. 

    Once the debug triggers let it open the dissassembly

    I don't know why it fails to load them automatically but once you load the files into the environment it should step through

     

    • Post Points: 35
  • 05-11-2008 4:58 PM In reply to

    • road11
    • Not Ranked
    • Joined on 03-29-2005
    • Posts 2
    • Points 40

    Re: No Symbols Loaded - Debugging on Vista

    I tried manually loading the .cst into the debugger environment, but that didn't work for me. It only displayed the source code just as it would any other text file, but ignored me when I asked it to "show next statement." How can I get debugging working and get past this silly "No symbols loaded" error?

    Eric J Lynch MCSD, MCDBA Atlanta, GA USA
    Filed under:
    • Post Points: 35
  • 06-12-2008 3:10 PM In reply to

    • ejsmith
    • Top 10 Contributor
    • Joined on 12-28-2002
    • Dallas, TX USA
    • Posts 2,205
    • Points 922,460

    Re: No Symbols Loaded - Debugging on Vista

    Reply |Contact |Answer

    Well, I finally figured out how to resolve this.  You need to change the default editor in VS for .cst files to be the VS text editor instead of CodeSmith Studio.  Really crazy, but it works.  I will add this to the help file and to the debugging blog post.

    Eric J. Smith
    CodeSmith Tools, LLC
    Chief Software Architect

    • Post Points: 35
  • 07-31-2008 2:37 PM In reply to

    • larzeb
    • Top 200 Contributor
    • Joined on 11-04-2004
    • Posts 20
    • Points 460

    Re: No Symbols Loaded - Debugging on Vista

    Eric,

    Can you explain how to set up this default editor? I cannot debug in the beta because of this. Are you talking about Tools\Options\Text Editor\File Extension?

    Thanks, Lars

    • Post Points: 35
  • 08-01-2008 10:50 AM In reply to

    • blake05
    • Top 25 Contributor
    • Joined on 04-03-2008
    • Wisconsin
    • Posts 416
    • Points 7,635

    Re: No Symbols Loaded - Debugging on Vista

    Reply |Contact |Answer

    Hello,

    Yes, You would set this in the "Tools\Options\Text Editor\File Extension" dialog box. Put cst in the Extension box and select Source Code (Text) Editor With Encoding in the drop down.

    Thanks

    -Blake Niemyjski

    Blake Niemyjski

    CodeSmith Tools, LLC Support Specialist

    Blog: http://windowscoding.com/blogs/blake/

    ----------------------------------------------------------------------
     Member of the .NetTiers team | Visit http://www.nettiers.com
    ----------------------------------------------------------------------

    • Post Points: 5
Page 1 of 1 (8 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems