[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


visual studio 2010

Posted on 2014-08-29
Medium Priority
Last Modified: 2014-09-11
I want to use visual studio 2010 Immediate window to view the result. What do i need to do?

namespace something
public class DLPayment
      public string testme()
            return "hello";
Question by:ITsolutionWizard
  • 2
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 40293831
View what result? What code are you debugging? A class by itself can't be debugged. You have to be executing some code first.

Author Comment

ID: 40293929
send me some codes  I can use with immediate window. I want to learn how it works.
My goal is to get quick result to test some methods inside of the .cs file.
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 40293976
The Immediate Window lets you either execute or inspect code that is in scope. You can execute code by simply typing it into the window. For example, in the first line I execute GetGreeting. The output, if any, is output just below it. If you want to inspect the value of some variable, or even some function call, then you can prefix the code with a question mark, as I did in line 3. The output of the a_private_variable is output just after.

LVL 15

Accepted Solution

ChloesDad earned 2000 total points
ID: 40294166
If you want to write text out for debugging purposes then use console.writeline("sometext")

This appears in the output window

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month20 days, 7 hours left to enroll

868 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question