-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
After breakpoint pause, STOP button restarts execution instead of stopping. #21561
Comments
Hi @thealphamoose thanks for your issue report, could you sent me your launch.json config and could you also send me the Python output log to see if there are any errors. Thanks |
Hi Paula,
Thanks for your help. I have been unable to correct the problem but it is consistent and reproducible. The breakpoint causes execution to stop as normal and I can step the code. Everything is normal until I hit the RED square stop icon. Then execution continues as if I hit the Green continue arrow icon. If I hit the red icon again the program does stop.
One thing that maybe related, I updated to the latest version of VSC but I also updated Django. Not sure what Django update would have on the breakpoint, but I wanted to make sure you had all the info possible.
I have attached the json file from my project directory. I am using a virtual environment. I'm looking for the python log file but I'm not sure where to find it.
I'm a newbie using VSC/Django and Python.
If you give me a hint I can try and locate the file.
Thanks
Alphamoose
From: paulacamargo25 ***@***.***
Sent: Friday, July 28, 2023 5:07 PM
To: microsoft/vscode-python
Cc: Angelo Nichols; Mention
Subject: Re: [microsoft/vscode-python] After breakpoint pause, STOP button restarts execution instead of stopping. (Issue #21561)
Hi @thealphamoose<https://github.com/thealphamoose> thanks for your issue report, could you sent me your launch.json config and could you also send me the Python output log to see if there are any errors.
Thanks
-
Reply to this email directly, view it on GitHub<#21561 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUOHR6LO3IPWRTD4U6RXZALXSQZWZANCNFSM6AAAAAAZ7LEJ7I>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Hi Paula,
Some more info. I retrieved an archived version of my django / python project which I know worked well up to the point I archived the code (one year ago) . I tested the breakpoint and the same thing happens. When the breakpoint is reached, execution stops, but when I hit the STOP icon, execution restarts from the breakpoint.
The stop icon is not functioning properly.
Thanks
Alphamoose
From: Angelo Nichols
Sent: Sunday, July 30, 2023 10:26 PM
To: 'microsoft/vscode-python'
Subject: RE: [microsoft/vscode-python] After breakpoint pause, STOP button restarts execution instead of stopping. (Issue #21561)
Hi Paula,
Thanks for your help. I have been unable to correct the problem but it is consistent and reproducible. The breakpoint causes execution to stop as normal and I can step the code. Everything is normal until I hit the RED square stop icon. Then execution continues as if I hit the Green continue arrow icon. If I hit the red icon again the program does stop.
One thing that maybe related, I updated to the latest version of VSC but I also updated Django. Not sure what Django update would have on the breakpoint, but I wanted to make sure you had all the info possible.
I have attached the json file from my project directory. I am using a virtual environment. I'm looking for the python log file but I'm not sure where to find it.
I'm a newbie using VSC/Django and Python.
If you give me a hint I can try and locate the file.
Thanks
Alphamoose
From: paulacamargo25 ***@***.***
Sent: Friday, July 28, 2023 5:07 PM
To: microsoft/vscode-python
Cc: Angelo Nichols; Mention
Subject: Re: [microsoft/vscode-python] After breakpoint pause, STOP button restarts execution instead of stopping. (Issue #21561)
Hi @thealphamoose<https://github.com/thealphamoose> thanks for your issue report, could you sent me your launch.json config and could you also send me the Python output log to see if there are any errors.
Thanks
-
Reply to this email directly, view it on GitHub<#21561 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUOHR6LO3IPWRTD4U6RXZALXSQZWZANCNFSM6AAAAAAZ7LEJ7I>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Hi Paula, I have been trying to solve the problem without success. I tried to isolate the problem by starting a new project and testing the breakpoint step by step. I created a new folder, then using visual studio code, I create a virtual env. (.venv) for Python using 3.11. I then copied over my settings.py, url.py and commented out all my apps I had previous written. Then I uncommented my "home" page app. So I had a simple template to display, like a hello page. This is where it got intesting. If I placed a breakpoint early in the program execution, like in the setting.py file. The breakpoint and the stop button worked correctly. Then I ran runserver and started my app which generated and displayed my home page. The home page come up-- no execution errors. I then placed a breakpoint in the views.py code which generates and displays the home page and the breakpoint DID NOT WORK CORRECTLY. Program execution stopped correctly but when I hit the STOP button execution restarted. I had to hit the STOP button again to terminate execution. The problem seems to be either django or runserver related. I'll keep at it and update you. If you have any clues I'm all ears. Thanks |
Experiencing the same problem in Visual Studio Code - Insiders Django, launch.json: |
Hi Anton,
I never solved the problem but I did find a work around. When you hit a breakpoint I do not use the STOP button located on the small ribbon, instead if you look over to the far left you will see in VSC a list of the processes currently running. As you hover over the processes, make your way up to the top most and you will see a stop button appear. If you hit THAT stop button it will stop execution.
I’m sorry if I have not explained it well enough but if you can’t get it to stop post again and I will try to send you some screen shots.
Good Luck,
Alphamoose
From: Anton Frolov ***@***.***
Sent: Tuesday, January 02, 2024 10:45 AM
To: microsoft/vscode-python
Cc: Angelo Nichols; Comment
Subject: Re: [microsoft/vscode-python] After breakpoint pause, STOP button restarts execution instead of stopping. (Issue #21561)
Experiencing the same problem in Visual Studio Code - Insiders
If you are in debugging mode and hit a breakpoint,
then BOTH [PLAY] and [STOP] buttons act the same - they continue to execute code to the end.
While the expected behavior for [STOP] Button IS TO STOP FURTHER EXECUTION.
—
Reply to this email directly, view it on GitHub<#21561 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUOHR6LFFP6LXXQINLPLAOLYMQTODAVCNFSM6AAAAAAZ7LEJ7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZUGE4TGMZSGU>.
You are receiving this because you commented.Message ID: ***@***.******@***.***>>
|
Hi, sorry for the delay, i was looking into this issue, could you try using the new Python Debugger Extension in insiders? |
Type: Bug
Debug does not stop executing when I tried to stop debugging after hitting a breakpoint. I found this problem reported Aug 18,2020 and the solution from Microsoft was to install the most recent release. But I have the most recent 1.79.2. Visual Studio Code
My app is written in python/Django. It used to work three months ago but since I have returned to the app for some changes my VSC must have updated to 1.79.2 and now this issue has appeared.
Details: When I set a breakpoint and it is tripped, the code execution stops normally. I can step, I can continue, all is good. But when I STOP (the red button on the ribbon) the program continues executing. If I hit stop a second time the program does stop but a great deal of code has been executed between the first and second clicks.
Extension version: 2023.10.1
VS Code version: Code 1.79.2 (695af097c7bd098fbf017ce3ac85e09bbc5dda06, 2023-06-14T08:59:55.818Z)
OS version: Linux x64 5.15.0-76-generic snap
Modes:
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: