Login Page - Create Account

Support Board


Date/Time: Thu, 23 Jan 2025 18:19:13 +0000



Post From: ACSIL debug techniques Q

[2018-12-04 06:11:56]
enemyspy - Posts: 306
It depends on the situation. But How I might approach that is use is set int h,m,s time variables and get them using sc.BaseDateTimeIn[sc.Index], and then set a conditional breakpoint where as an example h ==12 && m == 32, and then step through it from there.

Problem is I don't really know how to set an indexed based break point when my point of reference is time. So that is how I narrow it down to the area of the chart I want to step through in those situations.

Another thing you can do is if it is completely crapping out at the index you are looking for. You can add a temporary line of code to the study
where you go:
sc.AddMessageToLog(std::to_string(sc.Index).c_str(),1);
And that will print every index until it craps out, and then you have your index.

Another Thing I sometimes do Is set an unconditional break point, and add sc.Index to the watch, and then I will trial and error add conditions to the break point for instance start with sc.Index >200. Then sc.Index >400 and keep changing it to see where it craps out. Then I know where the index is.
Date Time Of Last Edit: 2018-12-04 06:19:42