question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't run or debug code in Parrot OS

See original GitHub issue

Environment data

  • VS Code version: 1.26.1
  • Extension version: 2018.7.1
  • OS and version: Parrot OS 4.2
  • Python version: 3.6.6 32 bit (installed with sudo apt install python3)
  • Type of virtual environment used: N/A
  • Relevant/affected Python packages and their versions: Every file that I try to debug

Actual behavior

Code does not run and debug does not start

Expected behavior

The code runs and I should be able to see variables and so on

Steps to reproduce:

  1. Open Visual Studio Code
  2. Open your workspace
  3. Press F5
  4. No debug or execution of code

Logs

Output for Python in the Output panel Blank

Output for Python Debug Console in the Terminal panel cd /home/test/Downloads/MyProject ; env "PYTHONIOENCODING=UTF-8" "PYTHONUNBUFFERED=1" /usr/bin/python3 /home/test/.vscode/extensions/ms-python.python-2018.7.1/pythonFiles/PythonTools/visualstudio_py_launcher.py /home/test/Downloads/MyProject 37427 34806ad9-833a-4524-8cd6-18ca4aa74f14 RedirectOutput,RedirectOutput /home/test/Downloads/Projects/MyProject.py

Terminating the above command with Ctrl+C gives:

  File "/home/test/.vscode/extensions/ms-python.python-2018.7.1/pythonFiles/PythonTools/visualstudio_py_launcher.py", line 91, in <module>
    vspd.debug(filename, port_num, debug_id, debug_options, currentPid, run_as)
  File "/home/test/.vscode/extensions/ms-python.python-2018.7.1/pythonFiles/PythonTools/visualstudio_py_debugger.py", line 2607, in debug
    attach_process(port_num, debug_id, debug_options, currentPid, report = True)
  File "/home/test/.vscode/extensions/ms-python.python-2018.7.1/pythonFiles/PythonTools/visualstudio_py_debugger.py", line 2321, in attach_process
    raise Exception('failed to attach')
Exception: failed to attach```


Output from `Console` under the `Developer Tools` panel
```Blank```

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
d3r3kkcommented, Aug 25, 2018

Ok great! The experimental debugger is slated to become the default debugger very shortly, and we won’t be spending any effort fixing bugs with the current debugger at this point. Please continue to use the experimental debugger.

Thanks for responding!

0reactions
xsolinsxcommented, Aug 25, 2018

With the Experimental Debugger it is working fine

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't run or debug code in Parrot OS · Issue #2442 - GitHub
Open Visual Studio Code; Open your workspace; Press F5; No debug or execution of code. Logs. Output for Python in the Output panel...
Read more >
Debugging Makefile Project with Visual Studio Code IDE ...
C++ Tutorial for Beginners Episode 10 where we Debug a Makefile Project with Visual ... https://youtu.be/Vblwblo9Vdw Parrot Security OS: ...
Read more >
Parrot - CCTools Documentation - Read the Docs
This means Parrot cannot run a debugger, nor can it run itself recursively. In addition, Parrot cannot run setuid programs, as the operating...
Read more >
Can't run debugging in Visual Studio Code on Chrome OS
How do I run a .html file in VS Code on Chrome OS? It sais I need to add the absolute path to...
Read more >
VSCodium - Open Source Binaries of VSCode
VSCodium. Free/Libre Open Source Software Binaries of VS Code ... Microsoft's vscode source code is open source (MIT-licensed), ... Install on Parrot OS:....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found