c - How can I debug loops more efficiently on Eclipse? -


i trying thoroughly understand code found on github. running code on eclipse (version: 3.6.1 build id: m20100909-0800).

i want efficiently debug these lines of code:

        (index_x = 0; index_x < nb_mcu_x; index_x++) {           (index_y = 0; index_y < nb_mcu_y; index_y++) {             (index = 0; index < sos_section.n; index++) {               uint32_t component_index = component_order[index];               int nb_mcu = ((sof_component[component_index].hv >> 4) & 0xf) * (sof_component[component_index].hv & 0x0f);               (chroma_ss = 0; chroma_ss < nb_mcu; chroma_ss++) {                 unpack_block(movie, & scan_desc, index, mcu);                 iqzz_block(mcu, unzz_mcu, dqt_table[sof_component[component_index].q_table]);                 idct(unzz_mcu, ycbcr_mcu_ds[component_index] + (64 * chroma_ss));               }                upsampler(ycbcr_mcu_ds[component_index], ycbcr_mcu[component_index],                 max_ss_h / ((sof_component[component_index].hv >> 4) & 0xf), max_ss_v / ((sof_component[component_index].hv) & 0xf), max_ss_h, max_ss_v);             }              if (color && (sof_section.n > 1)) {               ycbcr_to_argb(ycbcr_mcu, rgb_mcu, max_ss_h, max_ss_v);             } else {               to_nb(ycbcr_mcu, rgb_mcu, max_ss_h, max_ss_v);             }              screen_cpyrect(index_y * mcu_sy * max_ss_h, index_x * mcu_sx * max_ss_v, mcu_sy * max_ss_h, mcu_sx * max_ss_v, rgb_mcu);           }         } 

the code above contains number of loops , stepping on every line of code many times laborious (nb_mcu_x 18 , nb_mcu_y 32).

i tried change values of index_x , index_y in debug mode. thought doing take me point in program more of code have been processed. however, index_x , index_y changed values gave them other dependent values did not change them. consequently, behavior of program distorted , began behaving erratically.

i tried setting breakpoints after section of code. however, not allow me see next step occurs after section of code above processed. want know instantly condition of code when index_x or index_y @ value of choosing.

is there way me in eclipse go forward in time , have more iterations processed instead of stepping on each line of code?

what should if, example, index_y 0 want go instantly point in program index_y 7 , rest of code has changed accordingly?


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -