Wrox Programmer Forums
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 29th, 2005, 04:20 PM
Authorized User
 
Join Date: Oct 2004
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to debug in VS.NET

I have a simple question about debugging in VS.NET and I think you may know how to do this.
In Visual Studio 6 and earlier, in command window I can debug my code on fly without any problem. Now, in VS.net, in the command window, I can check the value of any properties but cannot call any method.

For example, I have a string variable called tmp and the value is "This is a test";

string tmp = "This is a test";

In my command window, I can type tmp.Length and it return 14.
Then I try to call a method tmp.ToUpper(), it throws error "ToUpper' does not exist". Do you know to to fix the problem?

Regards,

John

 
Old April 29th, 2005, 04:58 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Please do not post the same question in multiple places

http://p2p.wrox.com/topic.asp?TOPIC_ID=29928

Hal Levy
I am here to help you, not do it for you.
That is, unless you hire me. I am looking for work.
 
Old May 2nd, 2005, 10:32 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

In VS.NET the "Command" and "Immediate" toolbox windows are shared. You have to switch from one to the other.
For the Immediate view: Debug -> Windows -> Immediate
For Command: View -> Other Windows -> Command Window

-Peter
 
Old May 7th, 2005, 03:16 PM
Authorized User
 
Join Date: Oct 2004
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default

After go to Command window then do what? the problem is in Command window editor, you cannot do much with a method of any object. In old Visual Studio 6 everything working. Have you ever used the debugger in VS.net?

John

 
Old May 7th, 2005, 08:57 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I use the debugger in VS.net all the time...

I have not run into a case where I could not run in the command window.. are you using the ? nomenclature as such: ? tmp.ToUpper()

Also, you don't mention if this is C# or not, if it's C#- remember it's case sensitive....



Hal Levy
I am here to help you, not do it for you.
That is, unless you hire me. I am looking for work.
 
Old May 11th, 2005, 11:22 AM
Authorized User
 
Join Date: Oct 2004
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Are you sure it's working? I have tried at work, at home and at my co-worker machines and all of them were not working at all. I am a software developer since 1997 and using Dotnet since 2002. If you have time, please verify if the debugging on fly is working on your machine and show me how to make it works.

John

 
Old November 24th, 2005, 11:27 AM
Authorized User
 
Join Date: Nov 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, I'm having a problem with the command windows, too. In my case a can evaluate expressions in the command windows, but the intelligence sense doesn't work, well sometimes when a put a dot it shows me the list of available properties for an object, but in other ocasions it doesn't, I don't know why, Is the any key a have to set?, thanks

 
Old November 26th, 2005, 12:13 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Please start new questions in new threads.

InteliSense doesn't always work for me either when in the command window. I have not discovered why that's the case.

I actaully never even looked for a pattern as to perhaps certain types have problems that others do not.

I will say that In 2005 debuging was an area they worked on.. tho I have not used it anywhere near as extensively as I would have liked- since I do not have a copy of the GM for it.



Hal Levy
I am here to help you, not do it for you.
That is, unless you hire me. I am looking for work.
 
Old November 27th, 2005, 03:05 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma
Default

I'm rather late to join this discussion, but just wanted to put in my two cents on the actual topic of this thread.

John, you are right. But so is Hal.

? ss.ToUpper() should work and it does work in VS.NET 2005 so Hal is right, but it doesnt work in earlier versions, so you are right too.

Interesting thing you've pointed out though.

Ankur
 
Old November 28th, 2005, 11:54 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Ankur- When VS.Net came out... Microsoft said there would be debugger issues.. and that things people were used to in the old VS would not be possible...

In 2005 they have remidied that.. and I can't wait to start using it in production.



Hal Levy
I am here to help you, not do it for you.
That is, unless you hire me. I am looking for work.





Similar Threads
Thread Thread Starter Forum Replies Last Post
VS.net 2005 and Smartdoc debug issue vishnuprasadh Visual Studio 2005 0 July 15th, 2006 08:11 PM
Unable to debug ASP.Net project... muskaanbajaj ASP.NET 1.0 and 1.1 Professional 0 December 3rd, 2005 01:24 AM
visoal studio.net debug problem matokuko VS.NET 2002/2003 2 November 12th, 2004 10:08 AM
I can't debug in VS.net 2003 C#.NET minhpx General .NET 2 August 12th, 2004 07:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.