Skip to content

Commit

Permalink
Updated VS Code debug documentation for Linux to point to SDK source …
Browse files Browse the repository at this point in the history
…code

Signed-off-by: Daniel Peroni <daperoni@microsoft.com>
  • Loading branch information
daperoni committed Jan 29, 2020
1 parent 358f0f6 commit 816956a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/GettingStartedDocs/Linux_vscode.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,12 @@ Open enc.c and put a breakpoint and continue execution.

![Enclave Breakpoint](images/VSCodeLinuxEnclaveBreakpoint.png)

To step through open enclave code you may need to change the source file mapping to point to the OE SDK source. Add the following to the project launch json under configurations:

```json
"sourceFileMap": {
"/home/jenkins/work_dir/workspace/OpenEnclave-v0.7.x_packages": "/home/username/path2code/openenclave/",
},
```

To use `oegdb` at the command line, one can select the "Debug Console" tab near the terminal pane. Then the standard gdb commands can be used, as long as they are prefixed with `-exec` first, like `-exec bt`. Please read documentation for `gdb` for further information on how to use `oegdb`: [https://sourceware.org/gdb/current/onlinedocs/gdb/](https://sourceware.org/gdb/current/onlinedocs/gdb/)

0 comments on commit 816956a

Please sign in to comment.