Results 1 to 3 of 3

Thread: [RESOLVED] Broke debugging

  1. #1

    Thread Starter
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    Resolved [RESOLVED] Broke debugging

    Hi,

    When I run my application and it contains an unhandled exception, it doesn't show me where anymore.
    Earlier some reference was bugging me, because I changed target framework.
    So I removed it.

    Now instead of showing the code where it fails, it shows me "No Source Available" and
    "No symbols are loaded for any call stack frame.".

    I could add the forms and classes to a new solution or project, but is there an easier fix?

    Thanks
    Delete it. They just clutter threads anyway.

  2. #2
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    Re: Broke debugging

    Do you start in debug or release mode? You also set tools-exceptions check all the checkboxen AND turn of code-optimazation
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

  3. #3

    Thread Starter
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    Re: Broke debugging

    I started from debug mode, no optimization, but nevermind.
    I've drawn the wrong conclusion.
    The situation was this:
    Code:
    // Program.cs
    static class Program
    {
        public static myClass = new myClass();
    
        static void Main()
        {
            // ...
        }
    }
    Somewhere in myClass the exception occurred and apparently the debugger only kick in starting from Main().
    I was so convinced that it had to do with the removal of the reference, that I forgot to throw some exception in another part of the code to check whether it happened there too.

    Here I can debug the exception properly again.
    Code:
    // Program.cs
    static class Program
    {
        public static myClass;
    
        static void Main()
        {
            myClass = new myClass();
            // ...
        }
    }
    Thanks for the suggestion though.
    Delete it. They just clutter threads anyway.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width