Please pass -Xfrozen_modules=off when debuging
@judej 已经在做这个了。
开始于 2024年12月11日。
评估
这个 Issue 还没有评估数据。
描述
This is a continuation from https://github.com/microsoft/debugpy/discussions/1703
Hi there!
When I try to run Python Debugger: Debug Python File I get:
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.
My python file has the following modules:
import os
import pickle
import sys
import warnings
sys.path.insert(1, "../config/")
from datetime import datetime, timedelta
import pandas as pd
import config
from core_forecast.model_forecast import BaseExperimentalConstrutor, ModeloForecast, Oraculo, ArrumaPrevisaoNegativa
from core_forecast.utils.checks import check_if_variaveis_usuario_are_in_the_df
from core_forecast.utils.save_load import CriaParser, clear_directories, save_to_csv, save_to_json
from model_hyper_parameters import model_mapping
from utils.extra import new_data_from_window
from utils.metrics_porto import protocolo_erro_porto, relatorio_metricas_porto
My launch.json including "purpose":["debug-in-terminal"] and "pythonArgs": ["-Xfrozen_modules=off"] as suggested:
{
"version": "0.2.0",
"configurations": [
{
"name": "Python Debugger: Current File",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"cwd": "${workspaceFolder}/src",
"justMyCode": false,
"python": "~/.conda/envs/time_series/bin/python",
"pythonArgs": ["-Xfrozen_modules=off"],
"purpose":["debug-in-terminal"],
"args": [
"-d","../data/05_model_input/comportamento_ALG_PRM/dados_input_model.csv",
"-o","../data/07_model_output",
]
}
]
}
still don't work.
Thanks in advance!
- 主要语言
- Python
- 星标
- 2.5k
- 派生
- 202
- 平均合并
- 5 天 1 小时
- 30 天内合并 PR
- 1
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/debugpy 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
-
documentation
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 78/100
-
documentation
难度 2/5 1-3 小时 新手友好度 62/100
-
难度 3/5 1-2 天 新手友好度 68/100
查看 microsoft/debugpy 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
stephrobert/dsoxlab#238 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
sublimehq/package_control#1780 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 70/100
nwg-piotr/nwg-displays#145 ·