473,699 Members | 2,518 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

debugging an application and using the Output window?

When I'm trying to debug an app in VS, I'm trying to get the value of a
variable by typing out a question mark and then the variable name. But when
I do that I get an error from the Output Window. :< I know this can be
done, and I've done it before, but I can't remember how I flipped the "mode"
of the Output window. Does anyone have any ideas or have you seen this
before?

Thanks.
Nov 17 '05 #1
4 1097
Is your applicatoin in the run state when you attempt to view the variable?
If it is running and simply waiting for input (ie. Console.ReadLin e()) you
will still have to pause the process before checking the variable's value.
bob
"Flip" <[remove_me]ph******@hotmai l.com> wrote in message
news:uw******** ********@TK2MSF TNGP14.phx.gbl. ..
When I'm trying to debug an app in VS, I'm trying to get the value of a
variable by typing out a question mark and then the variable name. But
when I do that I get an error from the Output Window. :< I know this can
be done, and I've done it before, but I can't remember how I flipped the
"mode" of the Output window. Does anyone have any ideas or have you seen
this before?

Thanks.

Nov 17 '05 #2
Use immed to switch to immediate mode and not need the question mark. Use
cmd to switch from immed to command mode and then require the question mark.

HTH

Dale Preston
MCAD, MCDBA, MCSE

"Flip" <[remove_me]ph******@hotmai l.com> wrote in message
news:uw******** ********@TK2MSF TNGP14.phx.gbl. ..
When I'm trying to debug an app in VS, I'm trying to get the value of a
variable by typing out a question mark and then the variable name. But
when I do that I get an error from the Output Window. :< I know this can
be done, and I've done it before, but I can't remember how I flipped the
"mode" of the Output window. Does anyone have any ideas or have you seen
this before?

Thanks.

Nov 17 '05 #3
> Use immed to switch to immediate mode and not need the question mark. Use
cmd to switch from immed to command mode and then require the question
mark.

WHOA! immed and cmd? I have to google on those commands. Thank you! I
knew I wasn't going nuts when I was trying it and it wasn't working. Thanks
Dale and Bob.

Thanks guys for your time! :>
Nov 17 '05 #4
> WHOA! immed and cmd? I have to google on those commands. Thank you! I
Sorry Dale, I just reread this and thought maybe you might have thought I
was making fun of you with the WHOA. But I'm not, I just didn't realize you
could switch the "mode" for that window like that. Reminds me of my vi days
(ssssssshhhhhhh hudder :>).

But I do have to go google on that, or do you have any handy links
available?

Thanks and have a good one! :>
Nov 17 '05 #5

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

Similar topics

1
3821
by: jim.eggleston | last post by:
I just figured out a reasonably decent way to use pdb in SciTE for debugging Python scripts. Debugging takes place in the SciTE output window. I have only tested this with SciTE on Windows. Here are the pieces you need: 1. Create a debug.py script file (I save this in c:\usr\python\scripts): import sys from pdb import pm, set_trace
2
2141
by: Rathtap | last post by:
My app calls another app asynchronously. How do I debug into the called app?
1
3702
by: gemel | last post by:
I am debugging code that writes to the console window, I select an appropriate line and the select 'Run to Cursor'. The console output does appear and then the window closes. How can I keep this window open without having to put Console.ReadLine() statements in my code? Regards John L
0
3224
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 converted/developed with VB.NET. What I want from debugging is to be able to step into the methods in the DLLs called from ASP scripts using Visual Studio .NET. Background: For typical script debugging issues, you can read and follow the two documents on...
1
2850
by: rwaddell | last post by:
I'm using Visual Studio 2005 Pro final, and I've noticed some bizarre behaviour when I'm debugging programs with multiple threads. Specifically, if I set a breakpoint in one of my non-UI threads, and try to step-over a line of code, my thread aborts and pretty much breaks my application. I tried a similar test in a console application and it seems to work fine. Here is a sample to show what I mean. Create a new Windows application...
6
2200
by: Brian Bischof | last post by:
I'm having troubles getting the debugging process to work consistenly for external classes. I got it to work once and then I turned it off. But now I can't get re-enabled. Here is what I'm doing. If someone could tell me what I'm missing that would be great. 1. Create an external class and call it Test.dll. 2. Create a test Asp.net app called App.sln. 3. For App.sln I set a reference to Test.dll. 4. Compile App.sln and run it. The web...
5
3630
by: snicks | last post by:
I'm trying to exec a program external to my ASP.NET app using the following code. The external app is a VB.NET application. Dim sPPTOut As String sPPTOut = MDEPDirStr + sID + ".ppt" Dim p As New System.Diagnostics.Process 'p.Start(MDEPDirStr & "macrun.exe", sPPTOut) p.Start("C:\WINDOWS\SYSTEM32\CALC.EXE") 'p.Start("C:\WINDOWS\SYSTEM32\macrun.exe", sPPTOut)
5
7799
by: phnimx | last post by:
Hi , We have developed a number of plug-in .NET Library Components that we typically deploy with our various applications by installing them into the GAC. Each of the applications contains an app.config file referencing arbitrary versions of the plug-in components they wish to consume. Here's the problem: Assuming I have installed any one of our application software,
0
7325
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the beginning CIS student who is struggling to get their programs working. I work in the computer lab at the college I'm attending and I see many students who don't know how to use the IDE for best results. Visual Studio automatically creates a number of...
2
20843
jwwicks
by: jwwicks | last post by:
C/C++ Programs and Debugging in Linux This tutorial will give you a basic idea how to debug a program in Linux using GDB. As you are aware Visual Studio doesn’t run on Linux so you have to use some of the tools provided on the command-line. If you hate the command line tools, get over it since you’re bound to be using them at some point in your career. All commands in Linux ARE case sensitive so capital letters are different from lowercase...
0
8685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8613
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9172
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8908
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4374
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3054
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2344
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.