Skip to content

Vscode does not hit break point in PyQt5 #317

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

Closed
timcking opened this issue Nov 29, 2017 · 7 comments
Closed

Vscode does not hit break point in PyQt5 #317

timcking opened this issue Nov 29, 2017 · 7 comments
Labels
area-debugging bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster

Comments

@timcking
Copy link

Environment data

VS Code version: 1.18.1
Python Extension version: 0.8.0
Python Version: 3.5.2
OS and version: Linux 4.10.0-40-generic #44~16.04.1-Ubuntu SMP and Windows 10.0.16299 Build 16299

Actual behavior

Program does not stop at breakpoint.

Expected behavior

Program stops at breakpoint

Steps to reproduce:

  • Set breakpoint in application code
  • Run Debug for Python task

Logs

Output from Python output panel
None

Output from Console window (Help->Developer Tools menu)
None

@brettcannon brettcannon added awaiting 1-verification area-debugging bug Issue identified by VS Code Team member as probable bug labels Nov 29, 2017
@DonJayamanne DonJayamanne self-assigned this Jan 22, 2018
@DonJayamanne
Copy link

I haven't been able to replicate this at my end.
I've tested this at my end using the following sample code and it works as expected:

import sys
from PyQt5.QtWidgets import QApplication, QWidget

if __name__ == '__main__':
    
    app = QApplication(sys.argv)

    w = QWidget()
    w.resize(250, 150)
    w.move(300, 300)
    w.setWindowTitle('Simple')
    w.show()
    
    sys.exit(app.exec_())

Please could you provide with some sample code I could use to replicate this issue.

@timcking
Copy link
Author

timcking commented Jan 25, 2018 via email

@DonJayamanne
Copy link

ImportError: No module named PyQt5.QtWidgets

Looks like you haven't got pyqt5 installed in your python environment (at least not in the environment used for debugging).

@DonJayamanne DonJayamanne added info-needed Issue requires more information from poster and removed awaiting 1-verification labels Feb 5, 2018
@timcking
Copy link
Author

timcking commented Feb 6, 2018 via email

@cemuka
Copy link

cemuka commented Feb 20, 2018

I think I have the exact same issue, looking forward to an answer.

@brettcannon brettcannon added needs verification and removed info-needed Issue requires more information from poster labels Feb 21, 2018
@DonJayamanne
Copy link

@timcking

  • Please could you upload the contents of your launch.json
  • Please ensure the setting "stopOnEntry": true, is set in launch.json
  • Try debugging once again

If above fails, then:

  • Please try debugging a simple sample such as the following:
print(1)
print(2)
  • Add a breakpoint to the first line and start debugging

@DonJayamanne DonJayamanne added info-needed Issue requires more information from poster and removed needs verification labels Feb 21, 2018
@brettcannon
Copy link
Member

Because it has been more than a month since we requested more info, I'm closing this issue. If you are able to provide the info later then please do so and we can re-open the issue.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-debugging bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

4 participants