Skip to content
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

serverReadyAction.killOnServerStop doesn't work correctly with Django debug sessions #518

Open
samamorgan opened this issue Feb 19, 2024 · 0 comments
Labels
triage-needed Needs assignment to the proper sub-team

Comments

@samamorgan
Copy link

Type: Bug

Behaviour

When running a Django runserver debug session, if I make changes to source files, the configured browser debug session stops.

Expected vs. Actual

I expect the browser debug session to stay alive when Django reloads on source file changes, but it dies.

Steps to reproduce:

  1. Add the following launch configuration with a Django project.
    {
      "name": "Django Server",
      "type": "debugpy",
      "request": "launch",
      "program": "manage.py",
      "args": [
        "runserver"
      ],
      "django": true,
      "justMyCode": true,
      "serverReadyAction": {
        "pattern": "Starting development server at (.*)",
        "uriFormat": "%s",
        "action": "debugWithChrome",
        "killOnServerStop": true
      },
      "consoleTitle": "Django Server"
    },
  1. Run "Django Server"
  2. Modify a source file in the Django app. Django will detect the change and reload itself, causing the browser session to die.

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.11.6
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Global
  • Value of the python.languageServer setting: Pylance
Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

User Settings

Multiroot scenario, following user settings may not apply:

languageServer: "Pylance"

experiments
• enabled: false

Extension version: 2024.0.1
VS Code version: Code 1.86.2 (Universal) (903b1e9d8990623e3d7da1df3d33db3e42d80eda, 2024-02-13T19:42:13.651Z)
OS version: Darwin arm64 23.2.0
Modes:

System Info
Item Value
CPUs Apple M1 Max (10 x 24)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 4, 3, 3
Memory (System) 32.00GB (0.48GB free)
Process Argv --crash-reporter-id 19c6bde3-9a40-4721-8b2c-60febe590630
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
b5d27386:30958190
fegfb526:30961430
7j2b6412:30964151
e3gdj431:30958358
ccp2r3:30958157

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Feb 19, 2024
@paulacamargo25 paulacamargo25 removed the triage-needed Needs assignment to the proper sub-team label Feb 26, 2024
@paulacamargo25 paulacamargo25 removed their assignment Feb 26, 2024
@paulacamargo25 paulacamargo25 transferred this issue from microsoft/vscode-python Feb 26, 2024
@karthiknadig karthiknadig transferred this issue from microsoft/vscode Dec 11, 2024
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

3 participants