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

IDE step through bug

Hello,

I have found that when stepping through a piece of code the IDE does not
work correctly. Here is the code snip:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim intTest As Int16

If True Then
If False Then intTest = 2
Else
End If

MessageBox.Show(intTest.ToString())
End Sub
To demonstrate the bug, put a break point on the line that says:

If True Then

Then step through the code. If you see what I see, then it will appear
as though the code steps into the assignment intTest = 2. Thankfuly the
code is actually working correctly, because as you can see the value of
intTest has not been changed. So this is just and IDE step through bug.

I have only tested this in VB.NET.

I am using:
Microsoft Development Environment 2003 Version 7.1.3088
Microsoft .NET Framework 1.1 Version 1.1.4322
Microsoft Visual Basic .NET 69586-335-0000007-18792
I am assuming I am not the only one who has found this bug, but thought
I should report it anyway.

Are there any pathes for this?

Thanks

Randy
Nov 20 '05 #1
2 1070
Randy,

I remember that being a bug in C#, VS2002 and the FW1.0 without the service
pack. I'm also quite sure, that SP2 corrected that bug (correct me, if I'm
wrong).

But, yes, I'm surprised, you're right!
However, put it in seperated lines, like this, and it'll work fine:

Dim intTest As Int16

If True Then
If False Then
intTest = 2
Else
End If
End If

Klaus

"Randy" <su*******@active-c.com> schrieb im Newsbeitrag
news:MP************************@news.supernews.com ...
Hello,

I have found that when stepping through a piece of code the IDE does not
work correctly. Here is the code snip:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim intTest As Int16

If True Then
If False Then intTest = 2
Else
End If

MessageBox.Show(intTest.ToString())
End Sub
To demonstrate the bug, put a break point on the line that says:

If True Then

Then step through the code. If you see what I see, then it will appear
as though the code steps into the assignment intTest = 2. Thankfuly the
code is actually working correctly, because as you can see the value of
intTest has not been changed. So this is just and IDE step through bug.

I have only tested this in VB.NET.

I am using:
Microsoft Development Environment 2003 Version 7.1.3088
Microsoft .NET Framework 1.1 Version 1.1.4322
Microsoft Visual Basic .NET 69586-335-0000007-18792
I am assuming I am not the only one who has found this bug, but thought
I should report it anyway.

Are there any pathes for this?

Thanks

Randy

Nov 20 '05 #2
* Randy <su*******@active-c.com> scripsit:
I have found that when stepping through a piece of code the IDE does not
work correctly. Here is the code snip:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim intTest As Int16

If True Then
If False Then intTest = 2
Else
End If

MessageBox.Show(intTest.ToString())
End Sub
To demonstrate the bug, put a break point on the line that says:

If True Then

Then step through the code. If you see what I see, then it will appear
as though the code steps into the assignment intTest = 2. Thankfuly the
code is actually working correctly, because as you can see the value of
intTest has not been changed. So this is just and IDE step through bug.

I have only tested this in VB.NET.

I am using:
Microsoft Development Environment 2003 Version 7.1.3088
Microsoft .NET Framework 1.1 Version 1.1.4322
Microsoft Visual Basic .NET 69586-335-0000007-18792


That's a bug, I am able to repro it on VS.NET 2003 too.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3

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

Similar topics

6
by: Martin Bless | last post by:
The good news: Along with Python-2.4 comes really good news to Windows users. Yes, you now CAN build extension modules yourself using the SAME C++ compiler and linker Python is built with...
10
by: tram | last post by:
How do we pass on the step1 output file to step2 of the same job? I would like to know the current job's output file programmetically, instead of hard coding it. Any idaes would be appreciated. ...
4
by: Claudio Grondi | last post by:
I need to unpack on a Windows 2000 machine some Wikipedia media .tar archives which are compressed with TAR 1.14 (support for long file names and maybe some other features) . It seems, that...
4
by: light_wt | last post by:
Hi I am taking the 2555 class and a lot of the material is over my head. I don't like the MS's book because there is no step-by-step on interacting with the VS.NET Is there good free resource...
3
by: R Millman | last post by:
under ASP.NET, single stepping in debug mode appears not to stop within event procedures. i.e. 1) Create web page with submit button and event procedure for the click event in the code behind...
1
by: Jim Hammond | last post by:
I can get data from a client-side assembly to the server in two manual steps, but I need to be able to do it in one step. Step 1: The user presses the manually coded "Step 1" button, which calls...
27
by: Julien Fiore | last post by:
Do you wand to install Pyrex on Windows ? Here is a step-by-step guide explaining: A) how to install Pyrex on Windows XP. B) how to compile a Pyrex module. Julien Fiore, U. of Geneva
5
by: ibiza | last post by:
Hi all, I'd need a function that would rounds values like : d = roundTo(64.2, 0.25) ' returns 64.25 d = roundTo(64.2, 10) ' returns 64 d = roundTo(64.2, 100) ' returns 100 well, that rounds...
7
by: gregory.lielens | last post by:
Hi, I am using a small python file as an input file (defining constants, parameters, input data, ...) for a python application. The input file is simply read by an exec statement in a specific...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.