473,569 Members | 2,762 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Debugging with Command window in Immed mode

Hi,

Stupid question here but I get the following error when debugging:

'debug.writelin e' is not declared or the module containing it is not loaded
in the debugging session.
I can however use ? to get a variables values or execute a command.
Are we ale to use debug.writeline with asp.net apps when stepping through
code?

Thanks,

Chris
Nov 19 '05 #1
3 2411
Debug.WriteLine text should appear int he Output window of VS.NET, if
it is compiled into your code.

Apologies if this is not what you are asking about ...

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sun, 27 Feb 2005 21:35:02 -0800, "Chris Lane"
<Ch*******@disc ussions.microso ft.com> wrote:
Hi,

Stupid question here but I get the following error when debugging:

'debug.writeli ne' is not declared or the module containing it is not loaded
in the debugging session.
I can however use ? to get a variables values or execute a command.
Are we ale to use debug.writeline with asp.net apps when stepping through
code?

Thanks,

Chris


Nov 19 '05 #2
Thanks, but I was wondering why I can't use debug.writeline in the command
window when in immed mode.

"Scott Allen" wrote:
Debug.WriteLine text should appear int he Output window of VS.NET, if
it is compiled into your code.

Apologies if this is not what you are asking about ...

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sun, 27 Feb 2005 21:35:02 -0800, "Chris Lane"
<Ch*******@disc ussions.microso ft.com> wrote:
Hi,

Stupid question here but I get the following error when debugging:

'debug.writeli ne' is not declared or the module containing it is not loaded
in the debugging session.
I can however use ? to get a variables values or execute a command.
Are we ale to use debug.writeline with asp.net apps when stepping through
code?

Thanks,

Chris


Nov 19 '05 #3
I think the immed window is looking for an expression that returns a
value - but WriteLine returns void. (This is just a hypothesis of
mine, however).

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Mon, 28 Feb 2005 10:11:02 -0800, "Chris Lane"
<Ch*******@disc ussions.microso ft.com> wrote:
Thanks, but I was wondering why I can't use debug.writeline in the command
window when in immed mode.


Nov 19 '05 #4

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

Similar topics

4
1597
by: juzan | last post by:
hi i have this piece of code but it never shows the ex.tostring in the command or immed window. how do i see it? this is in a class public void getTeachers() { try
2
1406
by: hleewood | last post by:
I'm using VS 2003, VB.Net. For no apparent reason the Command Window no longer functions. It doesn't auto-complete and doesn't recognize any syntax.
4
1095
by: Flip | last post by:
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...
0
3213
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. ...
2
1191
by: James | last post by:
I start my ASP.NET application with Debugging. I set a breakpoint for a certain line that references a DataTable. I open the immediate window and do: ? dt.Rows.Count This used to work, now I get: "Run-time exception thrown : System.ArgumentException - Cannot find the method on the object instance."
4
1115
by: cj | last post by:
I run my programs with F5. I can use F11 to step through them. But, if it moves to another class or something suddenly it just runs w/o asking or telling me. I want it to continue making me press F11. Any advice? Also at the bottom of the IDE are Index Results, Command Window, and Output windows. I get the command window and output...
2
20828
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...
0
7609
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...
0
7921
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. ...
0
8118
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7666
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...
0
6278
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3651
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...
0
3636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2107
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
0
936
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...

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.