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.

triggering a desired breakpoint auto-displays other threads and stops there without having breakpoint set

See original GitHub issue

when triggering a breakpoint in one thread (the desired breakpoint), other threads are displayed and editor jumps to those threads without having breakpoints at those locations.

Very similar to the bug reported here and closed https://github.com/Microsoft/vscode/issues/58125

Environment data

  • VS Code version: Code 1.27.1 (
  • Extension version (available under the Extensions sidebar): 2018.8.0 (04 September 2018)
  • OS and version: MacOS Sierra 10.12.6
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.1
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): N/A
  • Relevant/affected Python packages and their versions: Only package installed is vscode-python

Actual behavior

when triggering a breakpoint in one thread (the desired breakpoint), other threads are displayed and editor jumps to those threads without having breakpoints at those locations.

Expected behavior

The process breaks at the desired current file and line .

breakpoint_problem

Steps to reproduce:

  1. Set breakpoint after another process that presumably creates another thread, in this case start a mongodb connection

  2. Start debug, app will hit breakpoint and immediately open another file and stope

Logs

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

all are blank

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

Occurs after process is continued and allowed to finish…

console.ts:136 [Extension Host] Python Extension: Error in debugger Banner Error: Missing required @injectable annotation in: Random.
	at getTargets (/Users/currentuserfolder/.vscode/extensions/ms-python.python-2018.8.0/node_modules/inversify/lib/planning/reflection_utils.js:20:15)
	at Object.getDependencies (/Users/currentuserfolder/.vscode/extensions/ms-python.python-2018.8.0/node_modules/inversify/lib/planning/reflection_utils.js:11:19)
	at /Users/currentuserfolder/.vscode/extensions/ms-python.python-2018.8.0/node_modules/inversify/lib/planning/planner.js:106:51
	at Array.forEach (<anonymous>)
	at _createSubRequests (/Users/currentuserfolder/.vscode/extensions/ms-python.python-2018.8.0/node_modules/inversify/lib/planning/planner.js:94:20)
	at Object.plan (/Users/currentuserfolder/.vscode/extensions/ms-python.python-2018.8.0/node_modules/inversify/lib/planning/planner.js:129:9)
	at /Users/currentuserfolder/.vscode/extensions/ms-python.python-2018.8.0/node_modules/inversify/lib/container/container.js:316:37
	at Container._get (/Users/currentuserfolder/.vscode/extensions/ms-python.python-2018.8.0/node_modules/inversify/lib/container/container.js:309:44)
	at Container.get (/Users/currentuserfolder/.vscode/extensions/ms-python.python-2018.8.0/node_modules/inversify/lib/container/container.js:228:21)
	at ServiceContainer.get (/Users/currentuserfolder/.vscode/extensions/ms-python.python-2018.8.0/out/client/ioc/container.js:28:89)
	at DebuggerBanner.<anonymous> (/Users/currentuserfolder/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:163:55)
	at Generator.next (<anonymous>)
	at /Users/currentuserfolder/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:18:71
	at new Promise (<anonymous>)
	at __awaiter (/Users/currentuserfolder/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:14:12)
	at DebuggerBanner.getDebuggerLaunchThresholdCounter (/Users/currentuserfolder/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:158:16)
	at DebuggerBanner.<anonymous> (/Users/currentuserfolder/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:135:22)
	at Generator.next (<anonymous>)
	at /Users/currentuserfolder/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:18:71
	at new Promise (<anonymous>)
	at __awaiter (/Users/currentuserfolder/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:14:12)
	at DebuggerBanner.passedThreshold (/Users/currentuserfolder/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:133:16)
	at DebuggerBanner.<anonymous> (/Users/currentuserfolder/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:72:30)
	at Generator.next (<anonymous>)
	at /Users/currentuserfolder/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:18:71
	at new Promise (<anonymous>)
	at __awaiter (/Users/currentuserfolder/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:14:12)
	at DebuggerBanner.shouldShow (/Users/currentuserfolder/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:68:16)
	at DebuggerBanner.<anonymous> (/Users/currentuserfolder/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:188:37)
	at Generator.next (<anonymous>)
	at fulfilled (/Users/currentuserfolder/.vscode/extensions/ms-python.python-2018.8.0/out/client/debugger/banner.js:15:58)
	at <anonymous>
t.log @ console.ts:136
t._logExtensionHostMessage @ extensionHost.ts:412
(anonymous) @ extensionHost.ts:224
emitTwo @ events.js:126
emit @ events.js:214
emit @ internal/child_process.js:772
_combinedTickCallback @ internal/process/next_tick.js:141
_tickCallback @ internal/process/next_tick.js:180

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
egorsecommented, Sep 7, 2018

Seems same as #2498 So far I had to digg trough stacks and fine the thread which actually pause on breakpoint - then I can step.

0reactions
brettcannoncommented, Sep 7, 2018

Can you verify this, @DonJayamanne ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use breakpoints in the Visual Studio debugger - Microsoft Learn
Breakpoints are one of the most important debugging techniques in your developer's toolbox. You set breakpoints wherever you want to pause ...
Read more >
Make the debugger stick to the current thread instead of ...
In my use case, when hitting a breakpoint in a RabbitMq consumer stops the background communications with RabbitMq server, invalidating my own debugging ......
Read more >
Debugging with gdb - DigiKey
5.4 Stopping and Starting Multi-thread Programs . ... To trigger the breakpoint, we call changequote. gdb suspends execution of m4, displaying.
Read more >
Debugging with gdb
5.4 Stopping and Starting Multi-thread Programs . ... To trigger the breakpoint, we call changequote. gdb suspends execution of m4, displaying.
Read more >
Debugging with gdb - Stopping and ... - Apple Developer
One way of doing that would be to set a code breakpoint at the entry to the main function and when it breaks,...
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