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.

Call stack and variables panes are blank when paused on breakpoints

See original GitHub issue
  • VS Code version: both code-insiders_1.28.0-1538437803_amd64.deb and code_1.27.2-1536736588_amd64.deb
  • Extension version (available under the Extensions sidebar): 2018.8.0
  • OS and version: Ubuntu (4.15.0-34-generic)
  • Python version (& distribution if applicable, e.g. Anaconda): apt install python (Python 2.7.15rc1)
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): N/A
  • Relevant/affected Python packages and their versions: none, clean install

Actual behavior

the debugger view tells you PAUSED ON BREAKPOINT but there are no details in the CALL STACK or VARIABLES panes.

Expected behavior

The debugger is pretty much useless without showing any variables or the call stack. I expect to see variables and call stack

Steps to reproduce:

`dpkg -P code; apt purge code vscode; snap uninstall vscode; mv ~/.vscode/ ~/BACKUP/.vscode; mv ~/.config/Code/ ~/BACKUP/.config/code`

`dpkg -i code-insiders_1.28.0-1538437803_amd64.deb`

run `code` in terminal

install microsoft python plugin

create a file with a single variable assignment and on second line a print

break point line 2

press F5 which runs for you `env "PYTHONIOENCODING=UTF-8" "PYTHONUNBUFFERED=1" "PYTHONPATH=/home/chris/.vscode/extensions/ms-python.python-2018.8.0/pythonFiles/experimental/ptvsd" /home/chris/workspace/bin/python -m ptvsd --host localhost --port 43707 /home/chris/workspace/test.py`

observe the debugger view tells you PAUSED ON BREAKPOINT but there are no details in the CALL STACK or VARIABLES panes.

Logs

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

Starting Jedi Python language engine.
##########Linting Output - pylint##########

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

##########Linting Output - pylint##########

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

##########Linting Output - pylint##########

--------------------------------------------------------------------
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)

 INFO no standard startup: panel is active
workbench.main.js:sourcemap:3263 [ms-python.python]Cannot read property 'replace' of undefined
e.$onExtensionRuntimeError @ workbench.main.js:sourcemap:3263
workbench.main.js:sourcemap:3263 TypeError: Cannot read property 'replace' of undefined
	at parseVersion (/home/chris/.vscode/extensions/ms-python.python-2018.8.0/out/client/common/platform/osinfo.js:155:15)
	at getos (/home/chris/.vscode/extensions/ms-python.python-2018.8.0/out/client/common/platform/osinfo.js:81:19)
	at /home/chris/.vscode/extensions/ms-python.python-2018.8.0/node_modules/getos/index.js:96:16
	at /home/chris/.vscode/extensions/ms-python.python-2018.8.0/node_modules/getos/node_modules/async/dist/async.js:421:16
	at iteratorCallback (/home/chris/.vscode/extensions/ms-python.python-2018.8.0/node_modules/getos/node_modules/async/dist/async.js:998:13)
	at /home/chris/.vscode/extensions/ms-python.python-2018.8.0/node_modules/getos/node_modules/async/dist/async.js:906:16
	at /home/chris/.vscode/extensions/ms-python.python-2018.8.0/node_modules/getos/index.js:91:18
	at /home/chris/.vscode/extensions/ms-python.python-2018.8.0/node_modules/getos/node_modules/async/dist/async.js:3060:16
	at eachOfArrayLike (/home/chris/.vscode/extensions/ms-python.python-2018.8.0/node_modules/getos/node_modules/async/dist/async.js:1003:9)
	at eachOf (/home/chris/.vscode/extensions/ms-python.python-2018.8.0/node_modules/getos/node_modules/async/dist/async.js:1051:5)
	at Object.eachLimit (/home/chris/.vscode/extensions/ms-python.python-2018.8.0/node_modules/getos/node_modules/async/dist/async.js:3122:5)
	at /home/chris/.vscode/extensions/ms-python.python-2018.8.0/node_modules/getos/index.js:81:13
	at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)
e.$onExtensionRuntimeError @ workbench.main.js:sourcemap:3263
workbench.main.js:sourcemap:276 [Extension Host] Python Extension: Error in debugger Banner Error: Missing required @injectable annotation in: Random.
	at getTargets (/home/chris/.vscode/extensions/ms-python.python-2018.8.0/node_modules/inversify/lib/planning/reflection_utils.js:20:15)
	at Object.getDependencies (/home/chris/.vscode/extensions/ms-python.python-2018.8.0/node_modules/inversify/lib/planning/reflection_utils.js:11:19)
	at /home/chris/.vscode/extensions/ms-python.python-2018.8.0/node_modules/inversify/lib/planning/planner.js:106:51
	at Array.forEach (<anonymous>)
	at _createSubRequests (/home/chris/.vscode/extensions/ms-python.python-2018.8.0/node_modules/inversify/lib/planning/planner.js:94:20)
	at Object.plan (/home/chris/.vscode/extensions/ms-python.python-2018.8.0/node_modules/inversify/lib/planning/planner.js:129:9)
	at /home/chris/.vscode/extensions/ms-python.python-2018.8.0/node_modules/inversify/lib/container/container.js:316:37
	at Container._get (/home/chris/.vscode/extensions/ms-python.python-2018.8.0/node_modules/inversify/lib/container/container.js:309:44)
	at Container.get (/home/chris/.vscode/extensions/ms-python.python-2018.8.0/node_modules/inversify/lib/container/container.js:228:21)
	at ServiceContainer.get (/home/chris/.vscode/extensions/ms-python.python-2018.8.0/out/client/ioc/container.js:28:89)
	at DebuggerBanner.<anonymous> (/home/chris/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:163:55)
	at Generator.next (<anonymous>)
	at /home/chris/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:18:71
	at new Promise (<anonymous>)
	at __awaiter (/home/chris/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:14:12)
	at DebuggerBanner.getDebuggerLaunchThresholdCounter (/home/chris/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:158:16)
	at DebuggerBanner.<anonymous> (/home/chris/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:135:22)
	at Generator.next (<anonymous>)
	at /home/chris/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:18:71
	at new Promise (<anonymous>)
	at __awaiter (/home/chris/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:14:12)
	at DebuggerBanner.passedThreshold (/home/chris/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:133:16)
	at DebuggerBanner.<anonymous> (/home/chris/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:72:30)
	at Generator.next (<anonymous>)
	at /home/chris/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:18:71
	at new Promise (<anonymous>)
	at __awaiter (/home/chris/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:14:12)
	at DebuggerBanner.shouldShow (/home/chris/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:68:16)
	at DebuggerBanner.<anonymous> (/home/chris/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:188:37)
	at Generator.next (<anonymous>)
	at fulfilled (/home/chris/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:15:58)
	at <anonymous>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
DonJayamannecommented, Oct 3, 2018

Reopening as I’d like to identify the to cause.

1reaction
chrisdlangtoncommented, Oct 3, 2018

ok i ran mv ~/.vscode-insiders ~/BACKUP/.vscode-insiders; mv ~/.vscode ~/BACKUP/.vscode and everything works fine now…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugging in JavaScript: Pausing on Exceptions
In this lesson, we'll cover a new debugging tactic: pausing on exceptions. This involves configuring web browser DevTools to automatically ...
Read more >
JavaScript debugging features - Microsoft Edge Development
To set other types of breakpoints, see Pause your code with breakpoints ... When not paused on a line of code, the Call...
Read more >
JavaScript debugging reference - Chrome Developers
Pause function execution at a breakpoint. The Call Stack pane records the order of function calls. In the Call Stack pane, right-click a ......
Read more >
Debug with breakpoints - Android Developers
Use breakpoints to pause a running app and inspect the code one line at a time. Add conditional expressions to breakpoints to save...
Read more >
Develop robust and reliable Android applications in Java
A breakpoint allows you to pause the execution of your application ... In the left pane, you will see the call stack we...
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