Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Performance / June 2005

Tip: Looking for answers? Try searching our database.

Conditional breakpoint (C#) "The condition is invalid"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dekel - 01 Jun 2005 09:23 GMT
I know this is not the ultimate group for that question - any pointers
are welcome:
 ( I've posted it on the next group but there was no answer
http://groups-beta.google.com/group/Dot-Net-Discussions/browse_frm/thread/a3f9f7
ed820cbbac/694f3ac67c6451f5#694f3ac67c6451f5
)

----------------------

What I'm looking for is a doc that list the rules for condition
validity.

Problem:
   I'm trying to set BP condition as
   System.Threading.Thread.Curren­tThread.Name =MyClass.MyPublicConstString
   and get the dreaded error "The condition is invalid"

   Note that when comparing to a (quoted fixed) string - the
conditional breakpoint works like a charm ...

I'm looking for a doc / KB / article / BLOG that list the rules for
condition validity.

During my searches I found two thread that claim some features works in

VB.NET but not in C# (I'm not sure if this is still valid)
  http://www.dotnet247.com/247re­ference/msgs/37/185105.aspx
  http://www.dotnet247.com/247re­ference/msgs/16/80756.aspx
So any data on other such differences will also be appreciated.

And above all - I wont it to just work (a call to the Microsoft team)

Dekel Israeli
Nick Baldwin - 25 Jun 2005 14:41 GMT
Conditional breakpoints only work for parameters that are set at compile
time, IIRC

> I know this is not the ultimate group for that question - any pointers
> are welcome:
[quoted text clipped - 28 lines]
>
> Dekel Israeli
Dekel - 27 Jun 2005 10:22 GMT
at least on the left site of the condition - there is no problem having
parameter (this is the whole point), and const string IS evaluated at
compile time ...

What am I missing?

And again - is there a way to get extended logging on the reason for
the error "The condition is invalid"???

Dekel Israeli

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.