473,410 Members | 1,852 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,410 software developers and data experts.

Problems with VS 2008 debugging

The text below is from the immediate window:

?DownloadZipFile.Attributes.Count
1
?DownloadZipFile.Attributes(0)
Nothing
Now that makes no sense. Why when I add an attribute to a element
cannot I not see what it is. I am trying to trace something and this
problem really complicates the debugging process.

Is it just me or is VS 2008 a real step backwards. I am on Vista
Ultimate and VS 2008 pro. Please don't ask to upgrade to SP1 as I tried
with the beta and the install would not happen. I would like to resolve
this before killing the install with an attempt at the upgrade.
LS
Aug 12 '08 #1
3 1439
"Lloyd Sheen" <a@b.cwrote in message
news:uq**************@TK2MSFTNGP02.phx.gbl...
The text below is from the immediate window:

?DownloadZipFile.Attributes.Count
1
?DownloadZipFile.Attributes(0)
Nothing
Now that makes no sense. Why when I add an attribute to a element cannot
I not see what it is. I am trying to trace something and this problem
really complicates the debugging process.

Is it just me or is VS 2008 a real step backwards. I am on Vista Ultimate
and VS 2008 pro. Please don't ask to upgrade to SP1 as I tried with the
beta and the install would not happen. I would like to resolve this
before killing the install with an attempt at the upgrade.
LS
Set a Watch, and expand it. Is this C#? Wouldn't that be .Attributes[0]?
Aug 12 '08 #2
Jeff Dillon wrote:
"Lloyd Sheen" <a@b.cwrote in message
news:uq**************@TK2MSFTNGP02.phx.gbl...
>The text below is from the immediate window:

?DownloadZipFile.Attributes.Count
1
?DownloadZipFile.Attributes(0)
Nothing
Now that makes no sense. Why when I add an attribute to a element cannot
I not see what it is. I am trying to trace something and this problem
really complicates the debugging process.

Is it just me or is VS 2008 a real step backwards. I am on Vista Ultimate
and VS 2008 pro. Please don't ask to upgrade to SP1 as I tried with the
beta and the install would not happen. I would like to resolve this
before killing the install with an attempt at the upgrade.
LS

Set a Watch, and expand it. Is this C#? Wouldn't that be .Attributes[0]?

Its VB and the code is as follows:

The aspx code:

<asp:Image CssClass="justHand" EnableViewState="false"
ImageUrl="~/Images/zip-file-32x32.png" AlternateText="Click to create a
zip file for the CD" ID="CreateZipImage" runat="server" Width="16px" />

The VB code:

Dim im As Image = CreateZipImage
im.Attributes.Add("onclick", "CreateZipFile('" +
MassageURL(Me.CDImage.AlternateText) + "' , '" +
MassageURL(Me.CDImage.AlternateText + "\songs.zip") + "')")
When I look at the attribute count for im prior to the attributes.add it
is zero and after it is one but that attribute is nothing????

LS
Aug 12 '08 #3
Jeff Dillon wrote:
"Lloyd Sheen" <a@b.cwrote in message
news:uq**************@TK2MSFTNGP02.phx.gbl...
>The text below is from the immediate window:

?DownloadZipFile.Attributes.Count
1
?DownloadZipFile.Attributes(0)
Nothing
Now that makes no sense. Why when I add an attribute to a element cannot
I not see what it is. I am trying to trace something and this problem
really complicates the debugging process.

Is it just me or is VS 2008 a real step backwards. I am on Vista Ultimate
and VS 2008 pro. Please don't ask to upgrade to SP1 as I tried with the
beta and the install would not happen. I would like to resolve this
before killing the install with an attempt at the upgrade.
LS

Set a Watch, and expand it. Is this C#? Wouldn't that be .Attributes[0]?


Another thing about VS 2008.

While I was replying to the above post I did a "Find all references" on
CreateZipImage. It gave me 2 references:

Protected WithEvents CreateZipImage As
Global.System.Web.UI.WebControls.Image - C:\Visual Studio Projects\Music
Player Web Site\UserControls\SongList.ascx(41, 22)

and

Dim im As Image = CreateZipImage - C:\Visual Studio Projects\Music
Player Web Site\UserControls\SongList.ascx.vb(473, 22)
Now the second was the line I used for "Find all references" so I double
click on the first reference and I get the following:

The definition of the object is hidden.

Now that is possibly the most stupid and useless message I have yet seen
in VS 2008. If it was indeed hidden why is it shown in the references.
Now I can open the ascx file and go to the line and OHHHH OHHH what do
I see (not really hidden) is the definition (see previous post).

Then if I use "Go to definition" it goes to an entirely different line
in ascx file which has the following code:

</ContentTemplate>

That is line 41 but column 22 is before it or maybe it is a problem with
tabs vs spaces.

VS 2008 is just simply terrible as an ASP.NET editor.

CreateZipImage is actually found on line 79 of the ascx file. So go figure.

LS
Aug 12 '08 #4

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

Similar topics

0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
11
by: AG | last post by:
Hi all, New install of VS 2005 Pro (SP1) on new machine with Windows XP Pro SP2, Core 2 Extreme Quad Core processor, 4GB RAM. Trying to debug a Web Application Project. I had no problems...
10
by: kimiraikkonen | last post by:
Visual C#.NET 2005 express has some issues, unlike VB.NET 2005 has none of them: The most annoying one is: For example if there's a coding error, it must be reported at the buttom of the screen...
0
by: David Goodger | last post by:
I am pleased to announce that PyCon 2008 registration is now open! http://us.pycon.org/2008/registration/ Early-bird registration is open until February 20, so there's one month to register at...
2
by: =?Utf-8?B?UGhpbCBKb2huc29u?= | last post by:
Hi, I just installed Visual Web Developer Express 2008 for the Javascript Debugging functionality. I browsed to an ASP.NET 1.1 website running on my localhost and hit a Javacript error. I...
1
by: Rene | last post by:
Hi, Given the following code: static void Main(string args) { Debug.Assert(false, "Oopsy"); } If I run the code above using a computer running Visual Studio 2005, I get
4
by: =?Utf-8?B?TWlrZSBHYWxl?= | last post by:
VS 2008 initially didn't debug classic ASP. SP1 fixes this in some ways. You can debug if you select the debug option to "Start Without Debugging, then either attach the debugger manually or...
0
by: Armin Zingler | last post by:
Hi, as I did not get a response in the vstudio group, I try it here: My problem is that I don't know how to display values while debugging a managed application. The Exe was written in VB 2008...
1
by: mazdotnet | last post by:
Hi all, I've installed the new Microsoft URL Rewrite Module for IIS 7.0 http://www.iis.net/downloads/default.aspx?tabid=34&i=1691&g=6 on both my laptop (Vista Home Premium) and my desktop...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.