Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi .
i want use condition breakpoint to stop debugging.
i have a typed DataSet and DataTable which contains a column that Its name is Url
now i want to stop debugging when my datatable url column has url that contain for example :
www.yahoo.com

what i do ?
Posted
Updated 18-Feb-12 5:38am
v2
Comments
Philippe Mori 18-Feb-12 8:30am    
I flaged your question as unclear as you said solution 1 does not answer it but I don't see what it does not answer in your question.
Varun Sareen 18-Feb-12 11:38am    
Edit for: Applied pre tag

hey
right-click on breakpoint and then click Condition on the shortcut menu.
best luck
 
Share this answer
 
Dear Friend,

To specify a breakpoint condition:-

1). In the Breakpoints window, right-click the line that contains a breakpoint glyph, and then click Condition on the shortcut menu.

-or-

In a source, Disassembly, or Call Stack, right-click a line that contains a breakpoint glyph, and then click Condition from Breakpoints on the shortcut menu.

2). In the Breakpoint Condition dialog box, enter a valid expression in the Condition box, such as myLocalVariable > 1. For more information about valid expressions, see Expressions in the Debugger.
[^]
3). Choose Is true if you want to break when the expression is satisfied, or choose Has changed if you want to break when the value of the expression has changed.


Note

The debugger does not evaluate the expression until the first time the breakpoint is reached. If you choose Has changed for native code, the debugger does not consider the first evaluation of the condition to be a change, so the breakpoint will not be hit on the first evaluation of the expression. If you choose Has changed for managed code, the breakpoint is hit on the first evaluation after Has changed is selected.


Hope this will help you out.

Thanks
 
Share this answer
 
v2
Comments
Saeid.Babaei86 18-Feb-12 5:49am    
hi.
thank you but my problem is not resolved !
you don't read my question fully
Philippe Mori 18-Feb-12 8:29am    
If you think so, then it is you question that is not clear enough as this answer is exactly the answer for your question.
Varun Sareen 18-Feb-12 11:37am    
thanks philippe
Varun Sareen 18-Feb-12 11:42am    
thanks dear..but please elaborate your problem then..i think you would be having problem in applying the condition for debugging break..for the URL??
ProEnggSoft 18-Feb-12 12:10pm    
Good Answer. Hence my 5!
Expression for break point shall solve tha problem as given in your answer at Sl.No. 2.
I could not understand what is the exact requirement of the OP.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900