473,382 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

VS.Net Debugging stopped working

Hello all!

I have been working on a project for some time now and yesterday, my
debugger stopped working.
It is a class library which I run from a Win32 test app, so no IIS involved
at this point.

I can still set breakpoints and when debugging the breakpoints get hit -
just like it would work normally.

However, when I want to check values of objects and such using autos or
watch, all values are null. I can step through the code, but it seems like
the debugger does not care about the code. It steps into catch blocks even
though an exception would be impossible. It would even step into this
statement:

string test = null;
if(test != null) {
// it would step into here
}

Here is an image that proves this wierd condition:
http://www.inloop.se/temp/debugger.jpg
This example is a standard Win32 app with only one form and one button.

I have run the repair feature in Visual Studio. I have also re-installed the
..Net framwork 1.1 SP1 for Win2003 but that didn't help.

Has anyone seen this before? What could possibly had happened and more
importantly, how can I solve this?

Thanks!

Mikael Östberg

Aug 18 '05 #1
7 2114

I've seen somewhat odd behavior when the debug symbols gets out of sync
with the code...like if somehow you changed the output directories and
so the debugger is reading an old set of debug symbols against newly
compiled code.

That's the only thing I can think of.

Also, I assume you rebooted a few times....

Mikael Östberg wrote:
Hello all!

I have been working on a project for some time now and yesterday, my
debugger stopped working.
It is a class library which I run from a Win32 test app, so no IIS involved
at this point.

I can still set breakpoints and when debugging the breakpoints get hit -
just like it would work normally.

However, when I want to check values of objects and such using autos or
watch, all values are null. I can step through the code, but it seems like
the debugger does not care about the code. It steps into catch blocks even
though an exception would be impossible. It would even step into this
statement:

string test = null;
if(test != null) {
// it would step into here
}

Here is an image that proves this wierd condition:
http://www.inloop.se/temp/debugger.jpg
This example is a standard Win32 app with only one form and one button.

I have run the repair feature in Visual Studio. I have also re-installed the
.Net framwork 1.1 SP1 for Win2003 but that didn't help.

Has anyone seen this before? What could possibly had happened and more
importantly, how can I solve this?

Thanks!

Mikael Östberg

Aug 18 '05 #2

Ps -- if you compile the code, and run it outside of VS.NET -- does it
work right (assuming you put some Console.WriteLine() in to tell you.

Mikael Östberg wrote:
Hello all!

I have been working on a project for some time now and yesterday, my
debugger stopped working.
It is a class library which I run from a Win32 test app, so no IIS involved
at this point.

I can still set breakpoints and when debugging the breakpoints get hit -
just like it would work normally.

However, when I want to check values of objects and such using autos or
watch, all values are null. I can step through the code, but it seems like
the debugger does not care about the code. It steps into catch blocks even
though an exception would be impossible. It would even step into this
statement:

string test = null;
if(test != null) {
// it would step into here
}

Here is an image that proves this wierd condition:
http://www.inloop.se/temp/debugger.jpg
This example is a standard Win32 app with only one form and one button.

I have run the repair feature in Visual Studio. I have also re-installed the
.Net framwork 1.1 SP1 for Win2003 but that didn't help.

Has anyone seen this before? What could possibly had happened and more
importantly, how can I solve this?

Thanks!

Mikael Östberg

Aug 18 '05 #3
Thanks for your answer!

Anyway, this example application is a 'new project' -> 'C# Windows
Application'.

All I did was adding a button and this example code. The output directories
would be in order.

I have tried to delete the pdb files, so that it would create new ones.

I have restarted a couple of times, yes. Another thing is that I have run
this example code on a colleague's machine and debugging works fine so it's
definitely a machine issue (Visual Studio, .Net framework, rights, I don't
know). My colleague and I are on the same domain and have the same user
level, so it's not a domain policy issue.

Thanks!

Mikael Östberg

The debugger output is this, if that would help:
'WindowsApplication2.exe': Loaded 'C:\Documents and Settings\mikaelo\My
Documents\Visual Studio
Projects\WindowsApplication2\bin\Debug\WindowsAppl ication2.exe', No native
symbols in symbol file.

'WindowsApplication2.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No
symbols loaded.

'WindowsApplication2.exe': Loaded 'C:\WINDOWS\system32\mscoree.dll', No
symbols loaded.

'WindowsApplication2.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No
symbols loaded.

'WindowsApplication2.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No
symbols loaded.

'WindowsApplication2.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No
symbols loaded.

'WindowsApplication2.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', No
symbols loaded.

'WindowsApplication2.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No
symbols loaded.

'WindowsApplication2.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No
symbols loaded.

'WindowsApplication2.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No
symbols loaded.

'WindowsApplication2.exe': Loaded 'C:\WINDOWS\system32\imm32.dll', No
symbols loaded.

'WindowsApplication2.exe': Loaded 'C:\WINDOWS\system32\lpk.dll', No symbols
loaded.

'WindowsApplication2.exe': Loaded 'C:\WINDOWS\system32\usp10.dll', No
symbols loaded.

'WindowsApplication2.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\msco rwks.dll', No symbols
loaded.

'WindowsApplication2.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\msvc r71.dll', Symbols loaded.

'WindowsApplication2.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusi on.dll', No symbols
loaded.

'WindowsApplication2.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', No
symbols loaded.

'WindowsApplication2.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', No
symbols loaded.

'WindowsApplication2.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.
0.100.0_x-ww_8417450B\comctl32.dll', No symbols loaded.

'WindowsApplication2.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\msco rdbc.dll', No symbols
loaded.

'WindowsApplication2.exe': Loaded 'C:\WINDOWS\system32\clbcatq.dll', No
symbols loaded.

'WindowsApplication2.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', No
symbols loaded.

'WindowsApplication2.exe': Loaded 'C:\WINDOWS\system32\comres.dll', No
symbols loaded.

'WindowsApplication2.exe': Loaded 'C:\WINDOWS\system32\version.dll', No
symbols loaded.

'WindowsApplication2.exe': Loaded 'C:\Program
Files\devTools\NCover\CoverLib.dll', No symbols loaded.

'WindowsApplication2.exe': Loaded 'C:\Program
Files\devTools\NCover\MSVCP71.dll', No symbols loaded.

'WindowsApplication2.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\dias ymreader.dll', No symbols
loaded.

'WindowsApplication2.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\msco rlib.dll', No symbols
loaded.

'WindowsApplication2.exe': Loaded
'C:\WINDOWS\assembly\NativeImages1_v1.1.4322\mscor lib\1.0.5000.0__b77a5c5619
34e089_c0ad7aaa\mscorlib.dll', No symbols loaded.

'DefaultDomain': Loaded
'c:\windows\microsoft.net\framework\v1.1.4322\msco rlib.dll', No symbols
loaded.

'WindowsApplication2.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\msco rsn.dll', No symbols
loaded.

'WindowsApplication2': Loaded 'C:\Documents and Settings\mikaelo\My
Documents\Visual Studio
Projects\WindowsApplication2\bin\Debug\WindowsAppl ication2.exe', Symbols
loaded.

'WindowsApplication2.exe': Loaded
'C:\WINDOWS\assembly\GAC\System.Windows.Forms\1.0. 5000.0__b77a5c561934e089\S
ystem.Windows.Forms.dll', No symbols loaded.

'WindowsApplication2.exe': Loaded
'C:\WINDOWS\assembly\NativeImages1_v1.1.4322\Syste m.Windows.Forms\1.0.5000.0
__b77a5c561934e089_2a8a060e\System.Windows.Forms.d ll', No symbols loaded.

'WindowsApplication2.exe': Loaded
'c:\windows\assembly\gac\system.windows.forms\1.0. 5000.0__b77a5c561934e089\s
ystem.windows.forms.dll', No symbols loaded.

'WindowsApplication2.exe': Loaded
'C:\WINDOWS\assembly\GAC\System\1.0.5000.0__b77a5c 561934e089\System.dll', No
symbols loaded.

'WindowsApplication2.exe': Loaded
'C:\WINDOWS\assembly\NativeImages1_v1.1.4322\Syste m\1.0.5000.0__b77a5c561934
e089_a290f5d3\System.dll', No symbols loaded.

'WindowsApplication2.exe': Loaded
'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c 561934e089\system.dll', No
symbols loaded.

'WindowsApplication2.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\msco rjit.dll', No symbols
loaded.

'WindowsApplication2.exe': Loaded
'C:\WINDOWS\assembly\GAC\System.Drawing\1.0.5000.0 __b03f5f7f11d50a3a\System.
Drawing.dll', No symbols loaded.

'WindowsApplication2.exe': Loaded
'C:\WINDOWS\assembly\NativeImages1_v1.1.4322\Syste m.Drawing\1.0.5000.0__b03f
5f7f11d50a3a_ffc7cdc8\System.Drawing.dll', No symbols loaded.

'WindowsApplication2.exe': Loaded
'c:\windows\assembly\gac\system.drawing\1.0.5000.0 __b03f5f7f11d50a3a\system.
drawing.dll', No symbols loaded.

'WindowsApplication2.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6 595b64144ccf1df_1.0.3790.1
36_x-ww_23C91158\GdiPlus.dll', No symbols loaded.

'WindowsApplication2.exe': Loaded 'C:\WINDOWS\system32\apphelp.dll', No
symbols loaded.

'WindowsApplication2.exe': Loaded 'C:\WINDOWS\system32\MSCTFIME.IME', No
symbols loaded.

'WindowsApplication2.exe': Loaded 'C:\WINDOWS\system32\MSIMTF.dll', No
symbols loaded.

'WindowsApplication2.exe': Loaded 'C:\WINDOWS\system32\MSCTF.dll', No
symbols loaded.

'WindowsApplication2.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_5.
82.0.0_x-ww_8A69BA05\comctl32.dll', No symbols loaded.

"John Bailo" <ja*****@texeme.com> wrote in message
news:43************@texeme.com...

I've seen somewhat odd behavior when the debug symbols gets out of sync
with the code...like if somehow you changed the output directories and
so the debugger is reading an old set of debug symbols against newly
compiled code.

That's the only thing I can think of.

Also, I assume you rebooted a few times....

Mikael Östberg wrote:
Hello all!

I have been working on a project for some time now and yesterday, my
debugger stopped working.
It is a class library which I run from a Win32 test app, so no IIS involved at this point.

I can still set breakpoints and when debugging the breakpoints get hit -
just like it would work normally.

However, when I want to check values of objects and such using autos or
watch, all values are null. I can step through the code, but it seems like the debugger does not care about the code. It steps into catch blocks even though an exception would be impossible. It would even step into this
statement:

string test = null;
if(test != null) {
// it would step into here
}

Here is an image that proves this wierd condition:
http://www.inloop.se/temp/debugger.jpg
This example is a standard Win32 app with only one form and one button.

I have run the repair feature in Visual Studio. I have also re-installed the .Net framwork 1.1 SP1 for Win2003 but that didn't help.

Has anyone seen this before? What could possibly had happened and more
importantly, how can I solve this?

Thanks!

Mikael Östberg

Aug 18 '05 #4
Yes, when I just run the code in non debug mode it works fine which would
mean that it's the debugger that is failing for some reason.

::m

"John Bailo" <ja*****@texeme.com> wrote in message
news:43**************@texeme.com...

Ps -- if you compile the code, and run it outside of VS.NET -- does it
work right (assuming you put some Console.WriteLine() in to tell you.

Mikael Östberg wrote:
Hello all!

I have been working on a project for some time now and yesterday, my
debugger stopped working.
It is a class library which I run from a Win32 test app, so no IIS involved at this point.

I can still set breakpoints and when debugging the breakpoints get hit -
just like it would work normally.

However, when I want to check values of objects and such using autos or
watch, all values are null. I can step through the code, but it seems like the debugger does not care about the code. It steps into catch blocks even though an exception would be impossible. It would even step into this
statement:

string test = null;
if(test != null) {
// it would step into here
}

Here is an image that proves this wierd condition:
http://www.inloop.se/temp/debugger.jpg
This example is a standard Win32 app with only one form and one button.

I have run the repair feature in Visual Studio. I have also re-installed the .Net framwork 1.1 SP1 for Win2003 but that didn't help.

Has anyone seen this before? What could possibly had happened and more
importantly, how can I solve this?

Thanks!

Mikael Östberg

Aug 18 '05 #5
Hello again!

I tried to debug an old ASP.NET project and there it works fine.

This narrows this wierd issue down to Win32 apps.

Clues anyone..?

::m
"Mikael Östberg" <mikael.ostberg-at-intellecta.se> wrote in message
news:#w*************@TK2MSFTNGP09.phx.gbl...
Hello all!

I have been working on a project for some time now and yesterday, my
debugger stopped working.
It is a class library which I run from a Win32 test app, so no IIS involved at this point.

I can still set breakpoints and when debugging the breakpoints get hit -
just like it would work normally.

However, when I want to check values of objects and such using autos or
watch, all values are null. I can step through the code, but it seems like
the debugger does not care about the code. It steps into catch blocks even
though an exception would be impossible. It would even step into this
statement:

string test = null;
if(test != null) {
// it would step into here
}

Here is an image that proves this wierd condition:
http://www.inloop.se/temp/debugger.jpg
This example is a standard Win32 app with only one form and one button.

I have run the repair feature in Visual Studio. I have also re-installed the .Net framwork 1.1 SP1 for Win2003 but that didn't help.

Has anyone seen this before? What could possibly had happened and more
importantly, how can I solve this?

Thanks!

Mikael Östberg

Aug 18 '05 #6


You say this is a class library -- a dll?

Maybe you're in dll hell -- that is, a dll has been registered with the
GAC or with the registry and it's not being released/overwritten by your
new code.

Have you tried writing a completely new app, with a new name in a new
directory?
Mikael Östberg wrote:
Hello again!

I tried to debug an old ASP.NET project and there it works fine.

This narrows this wierd issue down to Win32 apps.

Clues anyone..?

::m
"Mikael Östberg" <mikael.ostberg-at-intellecta.se> wrote in message
news:#w*************@TK2MSFTNGP09.phx.gbl...
Hello all!

I have been working on a project for some time now and yesterday, my
debugger stopped working.
It is a class library which I run from a Win32 test app, so no IIS


involved
at this point.

I can still set breakpoints and when debugging the breakpoints get hit -
just like it would work normally.

However, when I want to check values of objects and such using autos or
watch, all values are null. I can step through the code, but it seems like
the debugger does not care about the code. It steps into catch blocks even
though an exception would be impossible. It would even step into this
statement:

string test = null;
if(test != null) {
// it would step into here
}

Here is an image that proves this wierd condition:
http://www.inloop.se/temp/debugger.jpg
This example is a standard Win32 app with only one form and one button.

I have run the repair feature in Visual Studio. I have also re-installed


the
.Net framwork 1.1 SP1 for Win2003 but that didn't help.

Has anyone seen this before? What could possibly had happened and more
importantly, how can I solve this?

Thanks!

Mikael Östberg


Aug 18 '05 #7
Well..

In my efforts to solve this, I started a completely new project which
consists only of a C# Windows Application through the New Prjoct Wizard.

Even then, this problem occurs.

In the debug output window, I can see that the symbols for my application
are loaded.

So no, I'm not in DLL hell..

::m

"John Bailo" <ja*****@texeme.com> wrote in message
news:43**************@texeme.com...


You say this is a class library -- a dll?

Maybe you're in dll hell -- that is, a dll has been registered with the
GAC or with the registry and it's not being released/overwritten by your
new code.

Have you tried writing a completely new app, with a new name in a new
directory?
Mikael Östberg wrote:
Hello again!

I tried to debug an old ASP.NET project and there it works fine.

This narrows this wierd issue down to Win32 apps.

Clues anyone..?

::m
"Mikael Östberg" <mikael.ostberg-at-intellecta.se> wrote in message
news:#w*************@TK2MSFTNGP09.phx.gbl...
Hello all!

I have been working on a project for some time now and yesterday, my
debugger stopped working.
It is a class library which I run from a Win32 test app, so no IIS


involved
at this point.

I can still set breakpoints and when debugging the breakpoints get hit -
just like it would work normally.

However, when I want to check values of objects and such using autos or
watch, all values are null. I can step through the code, but it seems likethe debugger does not care about the code. It steps into catch blocks eventhough an exception would be impossible. It would even step into this
statement:

string test = null;
if(test != null) {
// it would step into here
}

Here is an image that proves this wierd condition:
http://www.inloop.se/temp/debugger.jpg
This example is a standard Win32 app with only one form and one button.

I have run the repair feature in Visual Studio. I have also re-installed


the
.Net framwork 1.1 SP1 for Win2003 but that didn't help.

Has anyone seen this before? What could possibly had happened and more
importantly, how can I solve this?

Thanks!

Mikael Östberg


Aug 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mel | last post by:
I have read the debugging document created by M.K Park (which has been referenced on this newsgroup), but unfortunately, it has not helped with solving my problem. I've spent time on the MS KB and...
10
by: Shawn | last post by:
JIT Debugging failed with the following error: Access is denied. JIT Debugging was initiated by the following account 'PLISKEN\ASPNET' I get this messag in a dialog window when I try to open an...
7
by: Mikael Östberg | last post by:
Hello all! I have been working on a project for some time now and yesterday, my debugger stopped working. It is a class library which I run from a Win32 test app, so no IIS involved at this...
23
by: keyser_Soze | last post by:
I have MS Visual Studio 2003 on Windows XP Pro. I have IIS running on this machine and I am trying to debug some existing code which has both ASP and ASP.NET components. When I try and launch...
1
by: Usman | last post by:
Hi, I have a simple visual basic 6 program that calls a function in a class written in C# assembly. Running executeable directly gives me no problem, debugging VB6 program is also working fine....
6
by: nextpulse | last post by:
On Fedora, using php5. The mail() function returns a success - but the mail itself is not actually sent. How do I go about debugging this? Do I need to do this at the linux command level to ensure...
7
by: GaryDean | last post by:
(this was also posted on the MSDN WCF forum but the answers over there are not so good) I have a WCF Library hosted by IIS 6 and it all works fine. However I need to step through the code in the...
12
missshaikh
by: missshaikh | last post by:
Rick Byers : Func-eval can fail while stopped in a non-optimized managed method that pushes more than 256 argument bytes check the above URL i have same error "Cannot evaluate expression...
3
by: Cheyan | last post by:
Hi to everybody,I am having vista home basic.in my lap,I installed visual studio 2005.am working now with asp.net.. When i set my break point in the pageload fn.It shows " No symbols have been...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.