10
import pandas as pd
data = pd.read_csv(some_data)

I put a breakpoint in the second line of this code and Visual Studio Code stops at this breakpoint. But when I try to step into the "read_csv" function vscode apparently performs a "step over". I also tried setting a breakpoint inside the "read_csv" function but with the same result.

So how do I step into the mentioned function?

asked Dec 27, 2018 at 10:03
2
  • Seems to work for me. What exactly is some_data? Also, I assume this is Python 3? Commented Dec 27, 2018 at 10:28
  • some_data is a pandas DataFrame which got saved as csv. But this was just an example. The main point is, that I can't step inside this function. Yes, it is Python3 and I tried it under macOS as well as Ubuntu both running the latest version of vscode and Python3. Commented Dec 27, 2018 at 14:25

2 Answers 2

28

As of the April 2019 update debugStdLib changed to

"justMyCode": false

https://code.visualstudio.com/docs/python/debugging#_justmycode

answered Jun 19, 2019 at 20:53
Sign up to request clarification or add additional context in comments.

Comments

6

To step into third-party code, set "debugOptions": ["DebugStdLib"] in your launch.json configuration.

answered Jan 3, 2019 at 22:55

1 Comment

In my case it was "debugStdLib": true but thanks for pointing me in the right direction.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.