You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't run the Python debugger when any breakpoint is enabled if there is a numba.njit enabled.
Steps to replicate
Paste the following into a .py file:
import numba
# No idea if this matters.
assert numba.__version__ == '0.60.0'
@numba.njit
def func(x):
return x
def do(x):
return func(x)
if __name__ == '__main__':
do(1)
Place a breakpoint anywhere in the file. (I used line 14 do(1))
Run with the Python debugger.
Expected
The file runs without error.
Observed
The debugger raises the following error, pointing to line 10 func(x):
Exception has occurred: AssertionError
<code object do at 0x7f5279943bb0, file "/code/fastsys/tests/test_utils/import_numba.py", line 9> != <code object func at 0x7f52799af9e0, file "/code/fastsys/tests/test_utils/import_numba.py", line 5>
KeyError: (5, '/code/fastsys/tests/test_utils/import_numba.py', <code object func at 0x7f52799af9e0, file "/code/fastsys/tests/test_utils/import_numba.py", line 5>)
During handling of the above exception, another exception occurred:
File "/code/fastsys/tests/test_utils/import_numba.py", line 10, in do
return func(x)
^^^^^^^
File "/code/fastsys/tests/test_utils/import_numba.py", line 14, in <module>
do(1)
AssertionError: <code object do at 0x7f5279943bb0, file "/code/fastsys/tests/test_utils/import_numba.py", line 9> != <code object func at 0x7f52799af9e0, file "/code/fastsys/tests/test_utils/import_numba.py", line 5>
Installed version of the VSCode Python Extension: v2024.22.1
I'm running Python 3.12.7 with numba version 0.60.0.
launch.json:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python Debugger: Current File",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
},
]
}
The text was updated successfully, but these errors were encountered:
I can't run the Python debugger when any breakpoint is enabled if there is a
numba.njit
enabled.Steps to replicate
do(1)
)Expected
The file runs without error.
Observed
The debugger raises the following error, pointing to line 10
func(x)
:Details
Installed version of the VSCode Python Extension:
v2024.22.1
I'm running Python 3.12.7 with numba version 0.60.0.
launch.json
:The text was updated successfully, but these errors were encountered: