Closed ychechik closed 4 years ago
Can you upload some source that repros? This works fine with something similar, but it's likely something to do with your source code.
Or can you try this code here?
from IPython.display import clear_output
for i in range(10):
clear_output()
print("Hello World {0}!".format(i)) <-- Breakpoint on this line works
@rchiodo The same effect...
My settings;
{
"folders": [
{
"path": "."
}
],
"settings": {
"python.pythonPath": ".venv/bin/python3",
"python.dataScience.stopOnFirstLineWhileDebugging": false,
"python.dataScience.notebookFileRoot": "${fileDirname}",
"python.autoComplete.addBrackets": true,
"python.venvFolders": [
"./.venv"
],
// "python.envFile": "${workspaceFolder}/ws.env",
"python.terminal.activateEnvironment": false, //remove because of shh bug
// ====== linter
"python.linting.enabled": true,
"python.linting.pylintEnabled": false,
//"python.linting.pylintArgs": ["--generate-members"], //for recognizing cv imports
"python.linting.flake8Enabled": true,
"python.linting.flake8Args": [
"--max-line-length=120" // default is 80
],
"python.linting.flake8CategorySeverity.E": "Information",
"python.linting.flake8CategorySeverity.F": "Information",
"python.linting.flake8CategorySeverity.W": "Information",
// ====== formatter
"python.formatting.autopep8Args": [
"--max-line-length=120"
],
"python.analysis.disabled": [
"unresolved-import" // error appears when importing after sys.path.append
],
"files.watcherExclude": {
"**/.venv/**": true,
"**/.git/**": true,
},
"editor.autoClosingBrackets": "never",
"editor.autoClosingQuotes": "never",
"editor.mouseWheelZoom": true,
"editor.acceptSuggestionOnEnter": "smart",
"workbench.tree.indent": 30,
"workbench.tree.renderIndentGuides": "always",
"workbench.list.openMode": "doubleClick",
"explorer.confirmDelete": false,
"cSpell.allowCompoundWords": true,
"cSpell.diagnosticLevel": "Hint",
"cSpell.showStatus": false,
"gitlens.currentLine.enabled": false,
"gitlens.codeLens.enabled": false,
"gitlens.statusBar.enabled": false,
"gitlens.codeLens.recentChange.enabled": false,
"gitlens.codeLens.scopes": [
"containers"
],
"gitlens.hovers.enabled": false,
"gitlens.menus": {
"editorGroup": false
},
// "markdown.extension.toc.levels": "2..6",
// "markdown.extension.toc.githubCompatibility": true,
// "pasteImage.path": "${currentFileDir}/images",
},
"launch": {
"configurations": [
{
"name": "Python: Current File (Integrated Terminal)",
"type": "python",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"console": "integratedTerminal"
}
]
}
}
What happens if you turn this to true:
"python.dataScience.stopOnFirstLineWhileDebugging": false
Does it at least stop in the debugger?
this morning it works without any changes in the settings:
And developer console output: dev_console.txt
Bug: Notebook Editor, Interactive Window, Editor cells
Steps to cause the bug to occur
Actual behavior
above
Expected behavior
stop on breakpoint
Your Jupyter and/or Python environment
Please provide as much info as you readily know
Developer Tools Console Output
Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer