Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Please pass -Xfrozen_modules=off when debuging

オープン
#1,777 コメント 1 件 リアクション 4 件 担当者 1 名 GitHub で見る

@judej がすでに取り組んでいます。

2024年12月11日 から。

評価

この issue はまだ評価されていません。

説明

needs repro

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時間
マージ済み PR(30日)
1

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/debugpy のほかの issue

microsoft/debugpy の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。