- ago
In WL7 I have seen leftover messages generated by try/catch/print e.Message routine in the Debug Log. For example, if a symbol generates an exception it gets printed to the debug log along with the Symbol, as expected; now if I run the strategy on a 2nd symbol that does not generate an exception I can still view the previous symbol's error message in the debug log.
It seems the Debug Log clears *only* when a new print comes its way, o/w not.

WL6 had a simple way to clear the debug window:
ClearDebug();

Is there a WL7 equivalent?
0
294
4 Replies

Reply

Bookmark

Sort
- ago
#1
You can find an answer (whatever it is), either in the PDF or in the 6.9 QuickRef:
https://www.wealth-lab.com/Discussion/Quick-WL6-9-to-WL7-Translation-Guide-5548
0
- ago
#2
Seems like there's no equivalent - yet.
There are times when clearing the debug window is really needed. Hope the developers implement it some day or offer a workaround that achieves the same goal.
0
Glitch8
 ( 12.08% )
- ago
#3
The Debug Log automatically clears with each backtest run. I can't see why we need a C# method to clear it?
0
- ago
#4
I was debugging an error so I needed to to check whether I'd fixed it or not after making changes to the code.
If you fix the code correctly then the debug window does *not* get refreshed so the old error remains leaving one wondering whether it was fixed or not.

But... just discovered I can do so via Right-click option!
While that is nice it would be nicer if one can force a Clear via code.
1

Reply

Bookmark

Sort