proxmark3/doc/md/Installation_Instructions/VSCode-Installation-Instructions.md

90 lines
2.4 KiB
Markdown
Raw Normal View History

2021-12-31 18:36:43 +08:00
<a id="Top"></a>
# Visual Studio Code Installation Instructions
# Table of Contents
- [Visual Studio Code Installation Instructions](#visual-studio-code-installation-instructions)
- [Table of Contents](#table-of-contents)
- [Visual Studio Code for debugging](#visual-studio-code-for-debugging)
- [Debian / Ubuntu / Kali / ParrotOS / Raspbian](#debian--ubuntu--kali--parrotos--raspbian)
- [Windows: WSL](#windows-wsl)
- [Windows: ProxSpace](#windows-proxspace)
2020-12-30 07:00:39 +08:00
# Visual Studio Code for debugging
2021-12-31 18:36:43 +08:00
^[Top](#top)
2020-12-30 07:00:39 +08:00
Download and install [Visual Studio Code](https://code.visualstudio.com/)
Download and install [J-Link Software and Documentation pack](https://www.segger.com/downloads/jlink)
## Debian / Ubuntu / Kali / ParrotOS / Raspbian
2021-12-31 18:36:43 +08:00
^[Top](#top)
2020-12-30 07:00:39 +08:00
Install dependencies
```sh
sudo apt-get install --no-install-recommends binutils-arm-none-eabi gdb openocd gdb-multiarch
```
On some systems `arm-none-eabi-gdb` was replaced with `gdb-multiarch`. In order to use the J-Link debugger you need to link `arm-none-eabi-gdb` to `gdb-multiarch`:
```sh
ln -s /usr/bin/gdb-multiarch /usr/bin/arm-none-eabi-gdb
```
Setup the Visual Studio Code configuration, by going into your project folder and run:
```sh
./.vscode/setup.sh
```
now launch Visual Studio Code and open your project folder
## Windows: WSL
2021-12-31 18:36:43 +08:00
^[Top](#top)
2020-12-30 07:00:39 +08:00
Enter WSL prompt (`wsl` or `start windows terminal`)
Install dependencies
```sh
sudo apt-get install --no-install-recommends binutils-arm-none-eabi gdb openocd gdb-multiarch
```
The J-Link debugger requires `arm-none-eabi-gdb` which was replaced with `gdb-multiarch`. In order to use the J-Link debugger link `arm-none-eabi-gdb` to `gdb-multiarch`:
```sh
sudo ln -s /usr/bin/gdb-multiarch /usr/bin/arm-none-eabi-gdb
```
Setup the Visual Studio Code configuration, by going into your project folder and run:
```sh
./.vscode/setup.sh
```
and launch Visual Studio Code
```sh
code .
```
## Windows: ProxSpace
2021-12-31 18:36:43 +08:00
^[Top](#top)
2020-12-30 07:00:39 +08:00
Download and install [Visual Studio Code](https://code.visualstudio.com/)
Download and install [J-Link Software and Documentation pack for Windows](https://www.segger.com/downloads/jlink/JLink_Windows.exe)
Enter PorxSpace (`runme64.bat`) and enter your project folder.
Setup the Visual Studio Code configuration, by running:
```sh
./.vscode/setup.sh
```
now launch Visual Studio Code and open your project folder
_note_
Please install the recommended Visual Studio Code extensions in order for debugging to work.