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

(Debugging, vscode) step by step debugger incorrectly indicate what will be/is executed #4871

Open
MichalBrix opened this issue Feb 23, 2025 · 1 comment

Comments

@MichalBrix
Copy link

MichalBrix commented Feb 23, 2025

Context

While debugging and examining program running step by step, vs code is incorrectly reporting that program is executing inner if command:

Image

package test

import FMT "core:fmt"

main :: proc(){
    DebuggingTest("aaa")
}

DebuggingTest :: proc(str: string){
    for r in str{
        if r == 'b'{
            FMT.print("Should not get here!")
        }
    }
    
}

  • Operating System & Odin Version:
    Odin: dev-2025-02-nightly:ebda946
    OS: Windows 11 Home Basic (version: 24H2), build 26100.3194
    CPU: Intel(R) Core(TM) i9-10900K CPU @ 3.70GHz
    RAM: 32684 MiB
    Backend: LLVM 18.1.8

Expected Behavior

Debuger is indicating either line 13 or 14 - if inner statement omited

Current Behavior

Debugger is indicating executing line 12 - indicating its going to execute if inner statement.

@MichalBrix MichalBrix changed the title (Debugging, vscode) debugger step into for loop inner if even if nothing is printed. (Debugging, vscode) debugger incorrectly indicate what will be/is executed Feb 23, 2025
@MichalBrix MichalBrix changed the title (Debugging, vscode) debugger incorrectly indicate what will be/is executed (Debugging, vscode) step by step debugger incorrectly indicate what will be/is executed Feb 23, 2025
@JesseRMeyer
Copy link

Related: #4777

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