microsoft / microsoft/PTVS

Python3.14 failed to hit breakpoint when enable naitve code debug.

Open
#8,314 1 comment 0 reactions 1 assignee View on GitHub

@rchiodo is already working on this.

Since Oct 28, 2025.

needs repro Technical Debt
Dominant language
C#
Stars
2.6k
Forks
680
Avg merge
39m
Merged PRs (30d)
1

Description

Environment
Image

Steps to Reproduce

  1. Create a Python Application project, add simple Python code.
from math import cos, radians
	
# Create a string with spaces proportional to a cosine of x in degrees
def make_dot_string(x):
	rad = radians(x)                             # cos works with radians
	numspaces = int(20 * cos(radians(x)) + 20)   # scale to 0-40 spaces
	st = ' ' * numspaces + 'o'                   # place 'o' after the spaces
	return st
	
def main():
	for i in range(0, 1800, 12):
		s = make_dot_string(i)
		print(s)
main()
  1. Enable "Native Code Debugging" in project settings / debug page.
  2. Set breakpoint and start debugging.
  3. Observes

Expected behavior
It should hit the breakpoint.

Additional context and screenshots
Python3.14 failed to hit breakpoint.
Image

Output

'python.exe' (Win32): Loaded 'C:\Program Files\Python314\python.exe'. Symbols loaded.
'python.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Symbol loading disabled by Include/Exclude setting.
'python.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Symbol loading disabled by Include/Exclude setting.
'python.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Symbol loading disabled by Include/Exclude setting.
'python.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Symbol loading disabled by Include/Exclude setting.
'python.exe' (Win32): Loaded 'C:\Program Files\Python314\vcruntime140.dll'. Symbol loading disabled by Include/Exclude setting.
'python.exe' (Win32): Loaded 'C:\Program Files\Python314\python314.dll'. Symbols loaded.
'python.exe' (Win32): Loaded 'C:\Windows\System32\ws2_32.dll'. Symbol loading disabled by Include/Exclude setting.
'python.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'. Symbol loading disabled by Include/Exclude setting.
'python.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Symbol loading disabled by Include/Exclude setting.
'python.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Symbol loading disabled by Include/Exclude setting.
'python.exe' (Win32): Loaded 'C:\Windows\System32\bcrypt.dll'. Symbol loading disabled by Include/Exclude setting.
'python.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Symbol loading disabled by Include/Exclude setting.
'python.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Symbol loading disabled by Include/Exclude setting.
'python.exe' (Win32): Loaded 'C:\Program Files\Microsoft Visual Studio\18\Canary\Common7\IDE\Extensions\Microsoft\Python\Core\Microsoft.PythonTools.Debugger.Helper.x64.dll'. Symbols loaded.
'python.exe' (Python): Loaded ''. Module was built without symbols.
The thread 8220 has exited with code 836370432 (0x31da0000).
'python.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. Symbol loading disabled by Include/Exclude setting.
'python.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Symbol loading disabled by Include/Exclude setting.
The thread 10380 has exited with code 0 (0x0).
The thread 14084 has exited with code 0 (0x0).
The thread 7660 has exited with code 0 (0x0).
The program '[9564] python.exe' has exited with code 0 (0x0).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.