Is there a way to set a condition in the debugger, so that the program
will enter the debugger when the condition is true?
In my program, the number of rows in my grid is going down to 0 at some
point, but I can't find what subroutine/function is causing it to
happen. I can't trace the program line by line. I would like to let the
debugger tell me when it happens.
Is there a way to enter a command into a watch window, such as
Grid.Rows.Count =0, and it will enter the debugger when the condition
becomes true?
Thanks 4 1016
In VS2005 - if you create a break point, then right click on the red circle
there's a couple of options there for conditions, counters etc...
I can't remember about VS2003 as I've not got it installed on my machine
anymore!
"sh" <sh*****@prupip e.comwrote in message
news:vh******** ********@newsre ad1.news.pas.ea rthlink.net...
Is there a way to set a condition in the debugger, so that the program
will enter the debugger when the condition is true?
In my program, the number of rows in my grid is going down to 0 at some
point, but I can't find what subroutine/function is causing it to happen.
I can't trace the program line by line. I would like to let the debugger
tell me when it happens.
Is there a way to enter a command into a watch window, such as
Grid.Rows.Count =0, and it will enter the debugger when the condition
becomes true?
Thanks
Yes, you can also do this in VS 2003. However, I am finding it difficult to
set a condition such that:
obj Is Nothing.
as the Breakpoint Properties window places single quotes around the
condition. To get to the Breakpoint Properties window, right click on the
breakpoint and click Breakpoint Properties, then click the Condition button.
Is there a way to tell it to break when and object is nothing?
Steve
"Dan Bass" <nawrote in message
news:OM******** ******@TK2MSFTN GP02.phx.gbl...
In VS2005 - if you create a break point, then right click on the red
circle there's a couple of options there for conditions, counters etc...
I can't remember about VS2003 as I've not got it installed on my machine
anymore!
"sh" <sh*****@prupip e.comwrote in message
news:vh******** ********@newsre ad1.news.pas.ea rthlink.net...
>Is there a way to set a condition in the debugger, so that the program will enter the debugger when the condition is true?
In my program, the number of rows in my grid is going down to 0 at some point, but I can't find what subroutine/function is causing it to happen. I can't trace the program line by line. I would like to let the debugger tell me when it happens.
Is there a way to enter a command into a watch window, such as Grid.Rows.Coun t=0, and it will enter the debugger when the condition becomes true?
Thanks
Presumably for debugging purposes, you could write a simple if object is
nothing type test, which contained something like dim i as int = 1... and
put the breakpoint here? =oD
"Steve Long" <St**********@N oSpam.comwrote in message
news:Os******** ******@TK2MSFTN GP04.phx.gbl...
Yes, you can also do this in VS 2003. However, I am finding it difficult
to set a condition such that:
obj Is Nothing.
as the Breakpoint Properties window places single quotes around the
condition. To get to the Breakpoint Properties window, right click on the
breakpoint and click Breakpoint Properties, then click the Condition
button.
Is there a way to tell it to break when and object is nothing?
Steve
"Dan Bass" <nawrote in message
news:OM******** ******@TK2MSFTN GP02.phx.gbl...
>In VS2005 - if you create a break point, then right click on the red circle there's a couple of options there for conditions, counters etc...
I can't remember about VS2003 as I've not got it installed on my machine anymore!
"sh" <sh*****@prupip e.comwrote in message news:vh******* *********@newsr ead1.news.pas.e arthlink.net...
>>Is there a way to set a condition in the debugger, so that the program will enter the debugger when the condition is true?
In my program, the number of rows in my grid is going down to 0 at some point, but I can't find what subroutine/function is causing it to happen. I can't trace the program line by line. I would like to let the debugger tell me when it happens.
Is there a way to enter a command into a watch window, such as Grid.Rows.Cou nt=0, and it will enter the debugger when the condition becomes true?
Thanks
Right, I just couldn't figure out how to make that happen using the conition
button on the breakpoint properties dialog.
S
"Dan Bass" <nawrote in message
news:e1******** ******@TK2MSFTN GP02.phx.gbl...
Presumably for debugging purposes, you could write a simple if object is
nothing type test, which contained something like dim i as int = 1... and
put the breakpoint here? =oD
"Steve Long" <St**********@N oSpam.comwrote in message
news:Os******** ******@TK2MSFTN GP04.phx.gbl...
>Yes, you can also do this in VS 2003. However, I am finding it difficult to set a condition such that: obj Is Nothing. as the Breakpoint Properties window places single quotes around the condition. To get to the Breakpoint Properties window, right click on the breakpoint and click Breakpoint Properties, then click the Condition button.
Is there a way to tell it to break when and object is nothing?
Steve
"Dan Bass" <nawrote in message news:OM******* *******@TK2MSFT NGP02.phx.gbl.. .
>>In VS2005 - if you create a break point, then right click on the red circle there's a couple of options there for conditions, counters etc...
I can't remember about VS2003 as I've not got it installed on my machine anymore!
"sh" <sh*****@prupip e.comwrote in message news:vh****** **********@news read1.news.pas. earthlink.net.. . Is there a way to set a condition in the debugger, so that the program will enter the debugger when the condition is true?
In my program, the number of rows in my grid is going down to 0 at some point, but I can't find what subroutine/function is causing it to happen. I can't trace the program line by line. I would like to let the debugger tell me when it happens.
Is there a way to enter a command into a watch window, such as Grid.Rows.Co unt=0, and it will enter the debugger when the condition becomes true?
Thanks
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Derek Goto |
last post by:
I was running the perl debugger with arguments "-d -e 1" to test a small
program. When I assigned a value to the variable $foo, I could use it
fine, but when I qualified $bar with my, it remained undefined. Same
with local. Why is this? Does the debugger operate in a different scope
than main? If so, shouldn't I be able to access those values...
|
by: Steve Anderson |
last post by:
Please excuse my ignorance as I'm fairly new to ASP. We have IIS running on
Win2000 and serving out an ASP application. I installed the script debugger
tonight. IE6 on the machine has Disable Script Debugging unchecked. I set
the server side debugging for the www in question. I have a Stop statement
in the VBScript code in a certain page, and...
|
by: Jeff |
last post by:
Use the MS Script Editor included free with MS Office 2002 and above,
for debugging Internet Explorer (IE).
This subject is of great interest to many JS developers, as there is no
obvious, low cost way to do sophisticated debugging in
IE6 other than to use the debugger described below, which is horribly
documented otherwise. I feel...
|
by: Susanne Christe |
last post by:
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Registeresd JIT debugger is not avaialble:
After executing an application I get the Error:
Registered JIT debugger is not available..An attempt to launch a jit
debugger with the following command resulted in an error code of
0x2(2).please check...
|
by: Saradhi |
last post by:
Here I am back with the same question again.
I am trying to attach my process to the .NET Debugger to debug my process.
and I am using the folliwng code.
if ( !(applicationObject.Debugger.DebuggedProcesses == null) )
{
// My process ID
int processId = ((ExtensibilityEngine)m_ExtensibilityEngine).ProcessID;
foreach(Process p1 in...
| |
by: Bill Menees |
last post by:
VS.NET 2003 defaults the "Debugger Type" property to "Auto" for Visual C++
projects. Unfortunately, the "Auto" type isn't very smart. "Auto" bases
the debugger type on the launched EXE's type, which may have nothing to do
with the C++ project I'm trying to debug.
I have a .NET EXE that hosts all of my DLLs, but a lot of the DLLs are old,...
|
by: Ryan Gaudet |
last post by:
Hi,
I'm making some minor changes to a VB 6 app that I converted to VB .NET a
couple of years ago and I'm running into an issue with a function that is
seemingly returning a different result in the debugger than when I run the
exe.
The code in question is this;
iniFileName =...
|
by: Jon Davis |
last post by:
I'm hosting a .NET console application in a .NET Windows Service using
System.Diagnostics.Process. How do I block the debugger dialogue from
appearing?
Thanks,
Jon
|
by: Zytan |
last post by:
Can I break the debugger into a worker thread? Right now, my app is
freezing, and when I press pause, it stops on:
Application.Run(new MyForm());
I don't know what that means. I know the application starts there.
But why would the debugger stop on it? Why doesn't it stop where the
code is being run? I think there's a worker thread...
|
by: colin |
last post by:
Hi,
Ive written a 3dmodel editor, and it works fairly well
it harldy uses any cpu exept when its loading a texture from bitmap
in the debugger, at all other times it hardly uses any cpu
but from the debugger even in release mode it takes a second or so
to load a 65k texture, with a 2ghz pc this is 10k instructions per pixel !
I cant...
|
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...
| |
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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
|
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...
| |