Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PTVSD exceptions are not shown to the user - makes it look like debug cell doesn't work #3197

Closed
luabud opened this issue Aug 1, 2019 · 3 comments
Assignees

Comments

@luabud
Copy link
Member

luabud commented Aug 1, 2019

Environment data

  • VS Code version: 1.36.1
  • Extension version (available under the Extensions sidebar): 2019.9.28224-dev
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.3
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Relevant/affected Python packages and their versions: jupyter notebook 5.7.2

Steps to reproduce:

I used this file:

#%%
import matplotlib.pyplot as plt
import numpy as np 

#%%
x = np.array([5,2,4,6])
y = np.array(['a','b','c','d'])

#%%
plt.bar(y,x)
plt.show()

I added a breakpoint to plt.bar(y,x) and hit "debug cell" after running the first two cells, but it's not stopping at the breakpoint.

Logs

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

Nothing relevant showed up there for this

Output

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

image

@rchiodo
Copy link
Contributor

rchiodo commented Aug 1, 2019

Where is it stopping? It should stop at plt.bar(), the first line.

@rchiodo
Copy link
Contributor

rchiodo commented Aug 1, 2019

That's what it does for me.
debug

@rchiodo
Copy link
Contributor

rchiodo commented Aug 2, 2019

@luabud 's problem was a PTVSD env variable being set that was causing PTVSD to crash on attach.

We should at least log this failure, and/or tell the user why the debugger didn't start.

@rchiodo rchiodo changed the title Debug cell is not stopping on breakpoints PTVSD exceptions are not shown to the user - makes it look like debug cell doesn't work Aug 2, 2019
@DavidKutu DavidKutu self-assigned this Aug 9, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Nov 7, 2019
@microsoft microsoft unlocked this conversation Nov 14, 2020
@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-python Nov 14, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants