question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow for setting up a debug configuration for tests

See original GitHub issue

Environment data

VS Code version: 1.18.1 Python Extension version: 0.8.0 Python Version: 3.6 OS and version: Windows 10 falls update

Actual behavior

“Step into” when debugging does not let me go inside a lib installed in the venv (not the current personal code)

Expected behavior

“Step into” let me step into whatever code (mine or dependencies).

Steps to reproduce:

  • Place a breakpoint on a requests.get
  • Step into

Logs

N/A

PTVS has an option for that, and possible in PyDev (but full disclosure it was a long time ago for this one…)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
DonJayamannecommented, Dec 2, 2017

Aah, you’re debugging a unit test. That’s new information. Currently we don’t support debugging non-user code when debugging unit tests. That would be a new feature.

2reactions
DonJayamannecommented, Dec 2, 2017

Sorry, didn’t realize it was relevant information 😕

No worries, at least we got to the bottom of it very quickly. Would have been a another story if you hadn’t sent the screen shots. lol.

Will keep you posted.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PyCharm - Create run/debug configurations for tests - JetBrains
Open a test file in the editor, and right-click any line. · From the context menu, choose More Run/Debug | Modify Run Configuration....
Read more >
Create and edit run/debug configurations - Android Developers
Run/debug configurations specify details such as app installation, launch, and test options. You can define a configuration for one-time use, or save it...
Read more >
Creating a run/debug configuration for the test | IntelliJ IDEA ...
The run/debug configuration can be shaped in a number of ways. The first method is to pick the Edit Configurations… option from the...
Read more >
Jest Configuration And Debugging Jest Based Tests
In this tutorial, we will learn more about Jest Config files and see how you can actually debug Jest tests for troubleshooting one...
Read more >
Using Visual Studio Code to debug Jest based unit tests
Step 1 Enable debugging in our project · We will click on the debug icon (left hand sidebar). · Click on the add...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found