#Debug - stepping into test client

1 messages · Page 1 of 1 (latest)

wanton zephyr
#

Is it possible to use the TestClient in a test, and when debugging the test, step into the app code via the test client call?

dusky ravineBOT
#
Notes for Debug - stepping into test client
At your assistance

@wanton zephyr

No Response?

If no response in a reasonable time, ping @Member.

Closing

To close, type !solve or byte solve.

MCVE

Please include an MCVE so that we can reproduce your issue locally.

glossy skiff
#

What have you tried?

wanton zephyr
#

Only very simply: running the test in a debugger, and trying to step in the client call, and failing

mellow dirge
#

There's no reason this shouldn't work out of the box as far as I'm aware

wanton zephyr
#

Oh - I just can't click the "step into" button. Or it doesn't do anything. I can step past it, but not inside it. If there's no reason why I shouldn't be able to, I'll keep digging. Just wanted to sanity check first.

weary breach
#

This works for me. Are you using vscode?

#

I've had to add this to my vscode launch.json

"pythonArgs": ["-Xfrozen_modules=off"],
#

sometimes when using vscode