I've made a basic example that should reproduce the issue (breakpoints are also missied) - note the main advantage here it prints some information's i missed in my real program.
The example is composed of 4 files:
In practice, type "sh start.sh"
#!/bin/bash
python test_breakpoint.py
#!/bin/bash
python inside_file.py
import os, subprocess, debugpy
path = os.getcwd()
shfile = "run_python.sh"
# /// DEBUGGING
debugpy.listen(5678)
print("Waiting for Python debugger: attach")
debugpy.wait_for_client()
debugpy.breakpoint()
# /// DEBUGGING
command_line = f"sh {shfile}"
args = command_line.split()
run = subprocess.run(args)
import debugpy
print("\n*** here is a breakpoint ***\n")
debugpy.breakpoint()
{
"version": "0.2.0",
"configurations": [
{
"name": "Python Debugger: Attach",
"type": "debugpy",
"request": "attach",
"port": 5678,
"host": "localhost",
"justMyCode": true,
"pythonArgs": [
"-Xfrozen_modules=off"
],
"env": {
"PYDEVD_DISABLE_FILE_VALIDATION": "1"
}
}
]
}
Whatever I implement, the following warning appears and any breakpoint ouside the main python file (test_breakpoint.py here) is ignored ... ... what am i missing?
Thanks for your help
0.00s - Debugger warning: It seems that frozen modules are being used, which may 0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off 0.00s - to python to disable frozen modules. 0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. Waiting for Python debugger: attach
*** here is a breakpoint ***
0.00s - Debugger warning: It seems that frozen modules are being used, which may 0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off 0.00s - to python to disable frozen modules. 0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.