Apt get install gdb




















You can also install build essentials from software center Open it up, and search for "build essential". If you are ever unsure about a command line or the options being used always refer to the manual page for the command. These can be accessed on the internet by searching for man and the command for example man rm or you can access the same information by typing exactly the same command in the terminal for example man rm instructions for quitting the page will be at the bottom of the terminal like this.

Ubuntu Community Ask! Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Learn more. How to install build-essential? Asked 8 years ago. Active 4 years, 2 months ago. Viewed k times. Improve this question. Eliah Kagan k 51 51 gold badges silver badges bronze badges.

This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: gdb : Depends: libpython3. So I went down the dependency chain: The following packages have unmet dependencies: libpython3. Why is there a reference to Xenial? And why can't it be upgraded?

Further information: apt-cache showpkg Package: libpython3. Improve this question. Robobenklein Robobenklein 1, 14 14 silver badges 26 26 bronze badges.

Do you have any PPAs or other non-standard repositories enabled? Add a comment. Active Oldest Votes. On clean You may have PPA. Improve this answer. N0rbert N0rbert Viewed 2k times 1. We recommend this mode of WSL development, where all your source code files, in addition to the compiler, are hosted on the Linux distro.

For those subjects, there are many good resources available on the Web. If you have any problems, feel free to file an issue for this tutorial in the VS Code documentation repository.

Install Windows Subsystem for Linux and then use the links on that same page to install your Linux distribution of choice. This tutorial uses Ubuntu. During installation, remember your Linux user password because you'll need it to install additional software.

Open the Bash shell for WSL. If you installed an Ubuntu distro, type 'Ubuntu' in the Windows search box and then click on it in the result list. For Debian, type 'Debian', and so on.

The shell appears with a command prompt that by default consists of your user name and computer name, and puts you in your home directory. For Ubuntu it looks like this:. Make a directory called projects and then subdirectory under that called helloworld :. You'll also debug on Linux using GDB. These tools are not installed by default on Ubuntu, so you have to install them. Fortunately, that task is quite easy! From the WSL command prompt, first run apt-get update to update the Ubuntu package lists.

An out-of-date distro can sometimes interfere with attempts to install new packages. If the filenames are not returned from the whereis command, try running the update command again. Running VS Code in your helloworld project, as well as the editing, building, and debugging steps are the same.

VS Code will then start and open the helloWorld folder. If you click on the Remote Status bar item, you will see a dropdown of Remote commands appropriate for the session. For example, if you want to end your session running in WSL, you can select the Close Remote Connection command from the dropdown. Running code. The code. As you go through the tutorial, you will see three files created in a. In the File Explorer title bar, select the New File button and name the file helloworld.

You can also enable Auto Save to automatically save your file changes, by checking Auto Save in the main File menu. You'll look at the Run view later in this tutorial. In your new helloworld. After the declaration of the msg variable, start typing msg. You should immediately see a completion list that shows all the member functions, and a window that shows the type information for the msg object:. You can press the Tab key to insert the selected member; then, when you add the opening parenthesis, you will see information about any arguments that the function requires.

I don't have any debugging info in order to process the incapability of gdb. Below is a picture when typing "gdb". With that info, further guesses could be made. It may also help to know which system you are on, and which version of GDB you have installed. Yes, that would cause all kinds of problems including not being able to actually run python from command line.

Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. How can I correctly install and run gdb? Ask Question.



0コメント

  • 1000 / 1000