Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error debugging #11

Open
YindSoft opened this issue Aug 9, 2019 · 2 comments
Open

Error debugging #11

YindSoft opened this issue Aug 9, 2019 · 2 comments

Comments

@YindSoft
Copy link
Contributor

YindSoft commented Aug 9, 2019

Hello, I think I found a new error while debugging, in fact there are 2 errors:

https://gyazo.com/1aa6094c8b440dd08b449c3bfde36755

Check this video,

When debugging, when the debugger enters the FOR, it should go back to the for line as it has an assignation and then go to the inside block, in this case, it will always mark the print(i) but not the assignation.

Also, after finishing the for, for some reason it enter the else of the IF above. Which is more important bug.

Here is the code:

`x = 1;

x++;
if (x < 10) {
for (i = 1; i < 10; i++) {
print(i);
}

} else {
print("hola2");
}_`

@vassilych
Copy link
Owner

Hola, yes, you are absolutely right, will be fixing this.
The first one was actually a known (not-implemented) feature but the second one is a bug indeed (was not discovered since shown only when debugging step by step, somehow not when running all code at once).
Thanks,
Vassili

@vassilych
Copy link
Owner

Ok, got finally the second part fixed (the more important bug).
Please let me know if it works now.
Will work on the first part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants