Please pass -Xfrozen_modules=off when debuging
@judej đang làm issue này rồi.
Từ ngày 11/12/2024.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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!
- Ngôn ngữ chính
- Python
- Star
- 2.5k
- Fork
- 202
- Merge trung bình
- 1 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/debugpy
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Document "rules"-optionĐang mởdocumentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Adapter bootstrap fails with ConnectionRefusedError on WSL2 VirtioProxy or hostAddressLoopbackĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
Tất cả issue của microsoft/debugpy
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-2 ngày Mức phù hợp với người mới 70/100
-
FingerprintSplitter raises ZeroDivisionError when int(frac_train * len(dataset)) floors to zeroĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 7 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
lmstudio-ai/mlx-engine#376 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
pyiron/bagofholding#166 ·