vassilych / cscs

CSCS: Customized Scripting in C#

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Debugging skips line after entering an if

YindSoft opened this issue · 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

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

Hi, could replicate this error in your PC?

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?

Yes, is yindsoft at gmail.

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).