This is the an simple debugger adapter for Octave on Visual Studio Code
- Breakpoints
- Stacktraces
- Variable inspections
How to install octave and add to PATH. Ignore these if you have already done it.
- From menu, select Debug -> Add Configuration
- Using Add Cofiguration button to add
Octave: Launch
to your launch.json (You don't need to add one if there is already one). - Your launch.json should looks similar to the following:
{ "version": "0.2.0", "configurations": [ { "type": "octave", "request": "launch", "name": "Octave Debug Adapter(preview)", "exec": "octave-cli", "program": "${command:AskForProgramName}" } ] }
- Download and install Octave from the offical website
- Installing using the default options is highly recommanded unless you know what you are doing
- add the path of the dicretory containing the executale to the PATH
-
Install brew. If you already installed brew, skip to next step.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
Open up the terminal and enter the following command to install octave via brew.
brew update && brew upgrade brew install octave
- follow instructions on Octave Wiki then add the path of the dicretory containing the executale to the PATH
- build from scouce then add the path of the dicretory containing the executale to the PATH
- Open up the terminal and enter the following command:
sudo apt install octave
- build from scouce then add the path(for example,
/usr/bin/octave
) of the dicretory containing the executale to the PATH
- Inspect value of a variable by hovering over its name in VARIABLES in DEBUG window
- Support debugging a file by right-clicking it
- Add instructions for setting up the environment
- Initial release of vscode Octave Debug Adapter extension
- Support set breakpoints, stop on error, stacktraces, and basic variable inspection
- Add support for all data type (only support 1D currently).
- Add support for setFunctionBreakpoints.
- Microsoft/vscode-mock-debug for providing the template
- raix/vscode-perl-debug for design ideas and StreamCatcher