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.

Unverified breakpoint when attaching to process in docker container

See original GitHub issue

Environment data

  • VS Code version: 1.23.0
  • Extension version (available under the Extensions sidebar): 2018.4.0
  • OS and version: macOS 10.13.4
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.6.5 (default, Apr 25 2018, 14:23:58) [GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.1)]
  • Type of virtual environment used: Docker
  • Relevant/affected Python packages and their versions: Python - 2018.4.0

Actual behavior

All breakpoints are marked as ‘unverified breakpoint’. Unable to set breakpoints or step through code.

Expected behavior

Ability to set breakpoints and step through code.

Steps to reproduce:

  1. Follow steps here to create a reproducible environment: https://github.com/DonJayamanne/vscode-python-samples/tree/master/remote-debugging-docker-django

  2. Set a breakpoint here: https://github.com/DonJayamanne/vscode-python-samples/blob/master/remote-debugging-docker-django/home/views.py#L10

  3. navigate to localhost:8000 to trigger breakpoint

  4. The code breaks on base.py:126 inside of the django library instead of in views.py.

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

##########Linting Output - pylint##########
No config file found, using default configuration

--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

Nothing

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
nrempelcommented, May 24, 2018

Hi @DonJayamanne, sorry I’ve been caught up with work.

I got things working with the experimental debugger, but still ran into a couple issues.

I’ll put together an example case that demonstrates it as soon as possible.

Thanks!

0reactions
DonJayamannecommented, May 25, 2018

I’ll close this issue for now, please create a separate issue (s) for the new issues you have come across. Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unverified breakpoint when attaching to process in docker container ...
All breakpoints are marked as 'unverified breakpoint'. Unable to set breakpoints or step through code. Expected behavior. Ability to set breakpoints and step ......
Read more >
visual studio code - Remote debugging - Unverified breakpoint
I managed to get delve and vscode with go working for me by using docker-compose . I use my Dockerfile to build the...
Read more >
Golang Remote Debugging with Visual Studio Code
Show you how to debug remote golang applications. And how to solve problems, such as could not open debug info and unverified breakpoints....
Read more >
Attach to a process running on a Docker container
To attach to a running process in a Linux Docker container: In Visual Studio, select Debug > Attach to Process (CTRL+ALT+P) to open...
Read more >
Debugging
To get started debugging, run the command Debug: Open launch.json . If you did not already have ... Use attach when you want...
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