Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2449

Debugging: There is no DAP "stopped" event after "pause" request when using PySide6

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.0.0
    • PySide
    • None

      I am developing a DAP client for qtcreator and faced the problem that after "pause" I don't get the "stopped" event and debugging looks frozen. It happens with PySide6 lib and time.sleep(100) look to "Steps to reproduce".

      Environment data

      • debugpy version: 1.6.7.post1
      • OS and version: Ubuntu 22.04
      • Python version (& distribution if applicable, e.g. Anaconda): Python 3.10.6
      • Using VS Code or Visual Studio: -

       

      Actual behaviour

      • sent the "pause" request
      • get the "pause" response successful
      • didn't get "stopped" event

      It looks like all debugging is stuck because even ctrl + c, doesn't work to stop it.

      Log:
      qtc.dbg.dapengine: "Content-Length: 59\r\n\r\n{\"arguments\":{},\"command\":\"pause\",\"seq\":5,\"type\":\"request\"}"
      qtc.dbg.dapengine: "Content-Length: 86\r\n\r\n{\"seq\": 11, \"type\": \"response\", \"request_seq\": 5, \"success\": true, \"command\": \"pause\"}"

       

      Expected  behavior

      • sent the "pause" request
      • get the "pause" response successful
      • get "stopped" event

       

      Steps to reproduce:
      python3 -Xfrozen_modules=off -m debugpy --listen 127.0.0.1:5679 --wait-for-client main.py

      first example:

      import sys
      from PySide6.QtWidgets import QApplication
      if __name__ == "__main__":
          app = QApplication(sys.argv)
          sys.exit(app.exec())
      

      second example:

      import sys
      import time
      if __name__ == "__main__":
          while True:
              print("here --->")
              time.sleep(1000)
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            shpremna Shyamnath Premnadh
            artem.sokolovskii Artem Sokolovskii (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes