|
-
Jul 7th, 2010, 12:48 PM
#1
Thread Starter
Frenzied Member
[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.
-
Jul 7th, 2010, 01:35 PM
#2
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
-
Jul 7th, 2010, 02:00 PM
#3
Thread Starter
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|