cscs icon indicating copy to clipboard operation
cscs copied to clipboard

Debugging skips line after entering an if

Open YindSoft opened this issue 5 years ago • 5 comments

Doing some testing I notice the following. If you debug this code line by line. After entering the if and executing x++; it will jump to x=0; executing the print("x"); but not stopping with the debugger to that line.

`x = 1;

x++;

if (x > 1) { x++; }

print("x");

x=0; `

Here is a demostration: https://gyazo.com/c2b55dab06b1008283e4558a72d8a685

YindSoft avatar Jun 24 '19 15:06 YindSoft

Thanks for the report. Will try to fix it soon.

vassilych avatar Jun 25 '19 00:06 vassilych

Hi, could replicate this error in your PC?

YindSoft avatar Jul 05 '19 14:07 YindSoft

Hi, unfortunately I haven't had time, but this is in my priority queue and will do this soon. Thanks for the addition of foreach for strings! Nice feature! Do you have a private e-mail so that we can communicate directly?

vassilych avatar Jul 06 '19 11:07 vassilych

Yes, is yindsoft at gmail.

YindSoft avatar Jul 08 '19 23:07 YindSoft

Hi, I think I fixed it! The problem was in the Debugger.cs and Interpreter.cs files, not in the VS Code extension itself (even though it does have some problems as well which will be addressed soon).

vassilych avatar Jul 09 '19 22:07 vassilych