-
Notifications
You must be signed in to change notification settings - Fork 6
Line numbers of main .ino file seem to be off by one? #13
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
Comments
Thanks for giving this extension a try and submitting a quality bug report. I looked into it and could reproduce this mysterious line 33 issue, but this is not a decoder issue. I am open to further investigation, though.
There is neither line number counting logic in the decoder code nor special handling of the raw gdb output. You see in the decoder terminal what is from gdb. (With some additional ANSI coloring). The easiest way to see the decoder output is to check the logs inside the Arduino IDE. (See details on how to switch between the output channels: #10 (comment))
gh_13_short.mp4In my case, it was:
I agree that something is odd with the decoder output, but it's not here:
You can ask at https://github.com/arduino/arduino-builder or use the Arduino CLI forum, why there is this line number problem: https://forum.arduino.cc/c/software/arduino-cli/89 |
I have this sketch:
which for reason that I haven't figured out yet, causes a
LoadStoreAlignmentCause
exception:The decoder decodes it as:
Note where it says
xxxx.ino:33
. That is the main .ino file of the sketch (code above).These are lines 33 and 34 respectively, as counted by the Arduino IDE:
I don't think a
for
loop can itself be an entry in the stack, right? The functionusePixels()
seems much more likely.Maybe you are counting line numbers starting from 0?
The text was updated successfully, but these errors were encountered: