schnesim
schnesim

Reputation: 461

Step debugging imported modules in Python with Visual Studio Code

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?

Upvotes: 10

Views: 14088

Answers (2)

brickfungus
brickfungus

Reputation: 417

As of the April 2019 update debugStdLib changed to

"justMyCode": false

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

Upvotes: 28

Brett Cannon
Brett Cannon

Reputation: 15990

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

Upvotes: 6

Related Questions