Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Dear ,

I just want to know where to store Break Point in .NET Framework
Is there any database that store Break point
or any other location

plz tell me
Thanks in Advance
Posted
Comments
Sergey Alexandrovich Kryukov 5-Oct-11 9:58am    
What do you mean by storing a breakpoint? Why? Are you just interested to know how a breakpoint is actually remembered in Visual Studio? But Visual Studio is not .NET frameworks?
--SA

Hi,

just to clarify: there are no breakpoints in the framework! You can set them in Visual Studio and their location is saved in .suo-file which corresponds to the solution file (.sln).

Since VS2010 (not in the Express vesions) you can export and import them (on another machine). See MSDN documentation http://msdn.microsoft.com/en-us/library/dd293657.aspx[^]

Cheers
Jürgen
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 5-Oct-11 10:23am    
Great point (about framework) and useful piece of information, my 5.
In my solution, I also say about it and answer the question on where the breakpoints are stored.
--SA
[no name] 5-Oct-11 10:27am    
I would guess the OP wants to hand off the BPs to another developer.
[EDIT] CP is acting wierd today. This was suppose to be a responce to your comment on the OP. Oh well... atleast the right person :)
Simon Bang Terkildsen 5-Oct-11 10:31am    
Yeah I've had problems with CP as well, every now and then I get the Oops page and then have to wait 2-5 minutes and then I have to logon even though I've auto logon enabled.
Sergey Alexandrovich Kryukov 5-Oct-11 10:53am    
It worked. I happened to notice your comment which I appreciate. If your assumption is correct, this post by Jürgen Röhr provides sufficient help on how to do it -- sorry I won't be able to vote another 5. :-)
--SA
Simon Bang Terkildsen 5-Oct-11 10:28am    
+5, but I suppose could "store" a breakpoint in an assembly, see my answer
In .NET — nowhere. .NET Framework has nothing to do with breakpoints. A concrete set of breakpoints and their states is related to development process only and its persistence can be proprietary to development tools.

I just checked up my guess about where breakpoints are stored by Visual Studio. A simple experiment confirmed my guess: the breakpoints are attributed to the state of a solution (and not a project) and are stored in the .suo file. This file should not be considered as a part of source code. This is a temporary file used to persist solution state during development; it should not be published, put to the code base using Revision Control system, preserved when a solution is moved to a different location, etc. Doing so is a common mistake.

[EDIT]
What is related to .NET Framework is the support of debugging in the .NET application using the class System.Diagnostics.Debugger, http://msdn.microsoft.com/en-us/library/system.diagnostics.debugger.aspx[^]. This is something different from the breakpoints you mean, but is important part of .NET functionality. I appreciate the post by Simon where he pointed it out.

—SA
 
Share this answer
 
v2
Comments
Simon Bang Terkildsen 5-Oct-11 10:28am    
My 5, but I suppose could "store" a breakpoint in an assembly, see my answer
Sergey Alexandrovich Kryukov 5-Oct-11 10:40am    
Thank you, Simon. I credited it; my update goes after [EDIT].
--SA
Espen Harlinn 5-Oct-11 16:53pm    
Good reply :)
Sergey Alexandrovich Kryukov 5-Oct-11 16:55pm    
Thank you, Espen.
--SA
While Jürgen and SA are correct, I suppose you could say you stored a breakpoint in you assembly if you were to use Debugger.Break[^]

However get the feeling that you do not speak of breakpoints used for debugging, but something else, perhaps how to log information about where your application crashed and burned, just guessing here :)

If you do not talk about debug breakpoints, you need to update your question so you more clearly state what you want, perhaps some examples of what you want to do might help.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 5-Oct-11 10:39am    
Oh yes, sure. Thank you for pointing this out, my 5.
I really wanted to mention about it but did not know how to do it quick enough. Thanks to you, we have this important part of information posted, even though I it might be not directly related to the question, but relevant. Very good, I credited this post in the update of my answer.
--SA
Simon Bang Terkildsen 5-Oct-11 10:40am    
Thank you :)
Espen Harlinn 5-Oct-11 16:53pm    
Good point :)
Simon Bang Terkildsen 6-Oct-11 11:55am    
breakpoint :)

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