Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please pass -Xfrozen_modules=off when debuging #1777

Open
guilhermesilva07113 opened this issue Oct 14, 2024 · 0 comments
Open

Please pass -Xfrozen_modules=off when debuging #1777

guilhermesilva07113 opened this issue Oct 14, 2024 · 0 comments
Assignees
Labels
needs repro Issue has not been reproduced yet

Comments

@guilhermesilva07113
Copy link

This is a continuation from #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!

@karthiknadig karthiknadig self-assigned this Oct 15, 2024
@eleanorjboyd eleanorjboyd transferred this issue from microsoft/vscode-python-debugger Dec 11, 2024
@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Dec 11, 2024
@rchiodo rchiodo closed this as completed Dec 11, 2024
@rchiodo rchiodo reopened this Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Issue has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

4 participants