- This topic has 2 replies, 3 voices, and was last updated 2023-03-22 at 5:35 am by .
Viewing 2 reply threads
Viewing 2 reply threads
- You must be logged in to reply to this topic.
Tagged: AddResetSeparator, entermethod, exitmethod, identity
Hello, good morning, sorry, I’m using the EnterMethod and ExitMethod methods to start and close my functions, it had worked perfectly until I had the following environment:
My application was running and it was correctly displaying the messages in the Live Viewer, but it took too long and I decided to stop it from the task manager, however stopping it in this way did not close my function (ExitMethod), I went back to start my application and I enter another function that has the EnterMethod and now in the Live Viewer it seems that it is a child function of which I do not finish so to speak.
I would like to know if there is any way to avoid this behavior, that is, if it is possible to indicate to a function that it always starts as a parent, I have the Studio version.
Example image attached

Hi Ariagna,
The key to handling this situation is to add a Reset Separator to the message log. In the situation that you described above, after forcibly terminating your app with Task Manager, go to the Live Viewer and select Edit > Add Reset Separator. (There is also a toolbar button that does the same thing). The reset separator appears as 2-line separator and resets the indentation level.
You can also programmatically add a reset separator by calling the AddResetSeparator method from a CodeSite logger.
Ray
Hi Ray,
Did not know that feature, I have also added it to my programs!
Kind regards,
Hans Brand
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
Stripe is a payment processing platform that enables businesses to accept online payments securely and efficiently.
Service URL: stripe.com (opens in a new window)