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

Internal error detected while running code in debug mode #12502

Closed
krmahe86 opened this issue Jun 23, 2020 · 1 comment
Closed

Internal error detected while running code in debug mode #12502

krmahe86 opened this issue Jun 23, 2020 · 1 comment

Comments

@krmahe86
Copy link

krmahe86 commented Jun 23, 2020

The code is as below:

useCustomPtvsd = sys.argv[1] == "--custom"
ptvsdArgs = sys.argv[:]
ptvsdArgs.pop(1)

Load the debugger package

try:
    ptvsd_lib_path = os.path.join(
        os.path.dirname(__file__), "lib", "python", "old_ptvsd"
    )
    if useCustomPtvsd:
        sys.path.append(ptvsd_lib_path)
    else:
        sys.path.insert(0, ptvsd_lib_path)
    try:
        import ptvsd
        from ptvsd.__main__ import main

        ptvsd_loaded = True
    except ImportError:
        ptvsd_loaded = False
        raise
except:
    traceback.print_exc()
    print(
        """Internal error detected. Please copy the above traceback and report

file for reference:

File "c:\Users\mahesh_kanchikere_ra\.vscode\extensions\ms-python.python-2020.6.89148\pythonFiles\ptvsd_launcher.py", line 48, in <module>
    main(ptvsdArgs)
@ghost ghost added the triage-needed Needs assignment to the proper sub-team label Jun 23, 2020
@brettcannon
Copy link
Member

Duplicate of #12481

@brettcannon brettcannon marked this as a duplicate of #12481 Jun 23, 2020
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Jun 23, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants