Skip to content

Commit

Permalink
Changes: (#134)
Browse files Browse the repository at this point in the history
* Allow viewing of variables with the - character in the name.
* Hover on child variables.
* Display debug on vscode terminal.
* Set XTERM variable to the correct display during debugging with the GDB
  tty option.
* Using gdbtty on WSL and SSH (Windows -> Linux).
* stepOver in subroutines called by PERFORM statement.
* stepInto/stepOut in subroutines called by PERFORM statement.
* Gdbtty running with Ctrl-F5.
* Support for symbolic link directories on linux.
  • Loading branch information
marcsosduma authored Sep 18, 2023
1 parent b5905cf commit 439c52a
Show file tree
Hide file tree
Showing 16 changed files with 652 additions and 129 deletions.
11 changes: 5 additions & 6 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@
},
{
"name": "Tests",
"type": "node",
"type": "extensionHost",
"request": "launch",
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"runtimeExecutable": "${execPath}",
"args": [
"-u", "tdd",
"--colors",
"./out/test/"
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
],
"outFiles": [
"${workspaceRoot}/out/**/*.js"
Expand Down
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,22 @@ How to install xterm on Ubuntu:
```
sudo apt-get install xterm
```
You need to call VS Code or VSCodium from the terminal, like this:
```
cd cob_project
code .

On Linux you can see the output of the application in Vs Code itself. Add `gdbtty` property with `vscode` value to your `launch.json`. Here is an example:
```json
{
"name": "COBOL debugger",
"type": "gdb",
"request": "launch",
"cobcargs": [
"-free",
"-x"
],
"coverage": false,
"gdbtty": "vscode"
}
```
![GdbTTY](gdbttyvscode.png)

### Roadmap
- Mac
Expand Down
Binary file added gdbttyvscode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 439c52a

Please sign in to comment.