Skip to content

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

Open
@MichalBrix

Description

@MichalBrix

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions