Skip to content

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

Description

@linette-zyy

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions