By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,534 Members | 974 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,534 IT Pros & Developers. It's quick & easy.

Debugger question

P: n/a
sh
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
Nov 13 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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*****@prupipe.comwrote in message
news:vh****************@newsread1.news.pas.earthli nk.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

Nov 13 '06 #2

P: n/a
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**************@TK2MSFTNGP02.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*****@prupipe.comwrote in message
news:vh****************@newsread1.news.pas.earthli nk.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


Nov 15 '06 #3

P: n/a
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**********@NoSpam.comwrote in message
news:Os**************@TK2MSFTNGP04.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**************@TK2MSFTNGP02.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*****@prupipe.comwrote in message
news:vh****************@newsread1.news.pas.earthl ink.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



Nov 16 '06 #4

P: n/a
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**************@TK2MSFTNGP02.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**********@NoSpam.comwrote in message
news:Os**************@TK2MSFTNGP04.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**************@TK2MSFTNGP02.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*****@prupipe.comwrote in message
news:vh****************@newsread1.news.pas.earth link.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




Nov 16 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.