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.

Debugger doesn't stop at breakpoint in a remote interpreter

See original GitHub issue

Environment data

  • VS Code version: 1.20.1
  • Extension version (available under the Extensions sidebar): 2018.2.1
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): 2.7.14
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): N/A
  • Relevant/affected Python packages and their versions: https://pypi.python.org/pypi/azure-iothub-device-client/1.3.0.0b0

Steps to reproduce:

It would be a little more steps to setup IoT Edge on your machine, so I just paste key files here (Let me know if you need other more details):

Actual behavior

While when I try to debug a Python module in IoT Edge, I could attach the remote process in Docker, and see the console log in the Debug Console, and the breakpoint is red (which I think it indicates the source map is correct). However, the debugger did not stop at any breakpoint. Try it on both VS Code and VS Code Insider. And my another colleague also could not stop on breakpoint

edge-python

BTW, sometimes, after wait for a long time, it will stop at while True of the https://github.com/VSChina/iot-edge-python-docker/blob/e817575416449751bd705528b2e024e196d1a52b/modules/PythonModule/filter.py#L132, I am not sure if it is related to time.sleep(1000)?

More info

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
DonJayamannecommented, Mar 26, 2018

Let me check this out during the week.

0reactions
brettcannoncommented, Apr 3, 2018

Closing this as an upstream bug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PyCharm 2020.1 not stopping on breakpoints anymore.
[EDIT] I'm using a local interpreter, no remote debugging going on. ... Namely, the debugger doesn't stop at breakpoints outside the scope ...
Read more >
python 2.7 - Pycharm debugger does not stop on breakpoints
I had this issue when running remote interpreter from docker-compose. It disappeared when I set Working directory ...
Read more >
pdb — The Python Debugger — Python 3.11.1 documentation
Disable the breakpoints given as a space separated list of breakpoint numbers. Disabling a breakpoint means it cannot cause the program to stop...
Read more >
Debugging configurations for Python apps in Visual Studio Code
To use a different interpreter for debugging specifically, set the value for python in ... The debugger should stop on the debugpy.breakpoint() call, ......
Read more >
Python Remote Debugging in PyCharm: A Tutorial - Rookout
Local debugs are obviously simpler and doesn't deal with some of the ... Python's main debugging tool is pdb , including breakpoints and ......
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