hi, breakpoints inside ops suddenly stoped working...
# ask-community
p
hi, breakpoints inside ops suddenly stoped working with vscode. I can break in a job, but the all the break points inside the ops are ignored. worked perfectly fine yesterday. this is my debug configuration:
Copy code
{
            "name": "Python: Current File",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "justMyCode": false,
        },
g
You're probably better using the following config:
Copy code
{
  "name": "Dagster",
  "type": "python",
  "request": "launch",
  "console": "integratedTerminal",
  "justMyCode": false,
  "cwd": "${workspaceFolder}",
  "module": "dagster",
  "args": [
    "dev"
  ]
}
You need to have selected the relevant Python venv on your VSCode window where you installed the Dagster module.
p
thanks. but I was trying to run with
__name__ == "__main__"
. so the basic configuration should have worked. I created a test script with basic application
Copy code
def get_random():
    num = random.randint(1, 10)
    return num

@op
def test_op1(context):
    num = get_random()
    return num

@op
def test_op2(context, num):
    print(num)
    
@job
def test_job():
    res = test_op1()
    test_op2(res)

if __name__ == "__main__":
    test_job.execute_in_process()
and suddenly everything started working again, in my main application also. very weird. and it’s not the first time it happened.