Skip to content

Unable to debug a Python code sample #4296

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

Closed
Galopanama opened this issue Feb 6, 2019 · 5 comments
Closed

Unable to debug a Python code sample #4296

Galopanama opened this issue Feb 6, 2019 · 5 comments
Assignees
Labels
area-debugging bug Issue identified by VS Code Team member as probable bug

Comments

@Galopanama
Copy link

Environment data

  • VS Code version: Versión 1.30.2 (1.30.2)
  • Extension version (available under the Extensions sidebar):
  • OS and version: Mojave 10.14.2
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.7.2
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Relevant/affected Python packages and their versions: 3.7.2

Expected behaviour

Visual Studio is not reading the program that I try to run

Actual behaviour

that is the message that I receive. And when I try to follow the links, I received a message such as:

Internal error detected. Please copy the above traceback and report at
https://github.com/Microsoft/vscode-python/issues/new

Press Enter to close. . .''')

Steps to reproduce:

Exercise1_1st attemp copia.pdf

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

Nothing in the screen

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

nothing in the screen
@ghost ghost added the triage-needed Needs assignment to the proper sub-team label Feb 6, 2019
@d3r3kk
Copy link

d3r3kk commented Feb 6, 2019

## initial place to store the dictionaries
cache = {}

## define a function to count the words

def countWords(fileName):
    filename = {}
    for line in infile:
        words = line.split()
        words = words.strip(' ,"!.?:;')
        for word in words:
            if word in fileName:
                fileName[word] = fileName[name] + 1
            else:
                fileName[word]= 1
     return filename

## prompt the user to enter the file name
fileName = ('Enter the name of a file: ')
infile = open( fileName , 'r',)

## checking if the file has been read before

if fileName in cache:
    print('ok')
else: ##### create a function
    cache [fileName] = countWords (fileName)
infile.close()
## display the dictionary of the file that we have read
for word in sorted(fileName):
    print("%s: %d" % (word, fileName[word]))

@d3r3kk d3r3kk added the triage label Feb 6, 2019
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Feb 6, 2019
@d3r3kk d3r3kk changed the title gonzalo Unable to debug a Python code sample Feb 6, 2019
@ericsnowcurrently
Copy link

@Galopanama, thanks for letting us know about this problem. Sorry for the delay.

You said "that is the message that I receive". What message are you talking about?

The message you quoted suggested that you include a traceback in your error report. Please include that.

@ericsnowcurrently ericsnowcurrently added bug Issue identified by VS Code Team member as probable bug area-debugging info-needed Issue requires more information from poster labels Feb 20, 2019
@RajeshSivadasan
Copy link

I am also unable to debug python code. VSCode is stuck.
Version: 1.31.1 (system setup)
Commit: 1b8e8302e405050205e69b59abb3559592bb9e60
Date: 2019-02-12T02:20:54.427Z
Electron: 3.1.2
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 6.1.7601

vspyerror

@ericsnowcurrently ericsnowcurrently removed the info-needed Issue requires more information from poster label Feb 25, 2019
@ericsnowcurrently
Copy link

@RajeshSivadasan, that sounds like a different problem. In fact, it sounds like it could be a duplicate of several issues: #4223, #4463, or #4238. If it is not one of those then please open a new issue. Thanks!

@ericsnowcurrently ericsnowcurrently added the info-needed Issue requires more information from poster label Feb 26, 2019
@brettcannon
Copy link
Member

Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on then we will be happy to re-open this issue to pick up where we left off.

@ghost ghost removed info-needed Issue requires more information from poster triage labels Mar 26, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Apr 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-debugging bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

5 participants