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

After continue from breakpoint an enter is inserted in my code #1728

Closed
AUNL-BartRijvers opened this issue Nov 11, 2024 · 2 comments
Closed
Assignees
Labels
needs repro Issue has not been reproduced yet

Comments

@AUNL-BartRijvers
Copy link

AUNL-BartRijvers commented Nov 11, 2024

Environment data

  • debugpy version: 1.8.7
  • OS and version: Windows 11 Business version 23H2
  • Python version: 3.10.11
  • Using VS Code: 1.95.2

Actual behavior

I'm debuging my python code and put a breakpoint where execution halts without issues. When I however step over, step out, continue with, also an enter is inserted at the cursor position. This sometimes also occurs just before hitting the breakpoint.

Expected behavior

Debug controls should not modify my code

Steps to reproduce:

Edit any python scipt in vscode
Put a breakpoint
Debug the script, let it hit the breakpoint
Put the cursor mid-line
Choose step over or continue and the code is changed afterward, an enter has been put at the cursor position

A reboot of my computer did not give other results

Image

  1. I put my cursor at this position where the line was still complete with the next line appended.
  2. I put a breakpoint there and ran the code in debugger
  3. Choose Continue button
  4. Code hit the next breakpoint
  5. I scrolled back to find the previous break location changed like in the picture, text after the previous cursor position was put at next line
@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Nov 11, 2024
@rchiodo
Copy link
Contributor

rchiodo commented Nov 11, 2024

Thanks for the issue but this wouldn't be debugpy doing this. Debugpy has no code running in VS code. There must be some other extension that's doing something when a debug event occurs.

I would try it again with all other extensions disabled.

@rchiodo rchiodo closed this as completed Nov 11, 2024
@AUNL-BartRijvers
Copy link
Author

Thanks, I was working from home yesterday (using bluetooth mouse, different keyboard, different monitor) and now working from office (wired mouse, docking station) and the issue is not seen anymore, I can't reproduce anymore. I will check next time I work from home but I agree to close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Issue has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

3 participants