1 # VSCode Debugging
2
3 To debug the app on VSCode, use [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb) and [cargo debugger](https://github.com/jkelleyrtp/cargo-debugger).
4
5 ```bash
6 $ cargo debugger --package smbcloud-cli -- account signup
7 ```
8
9 ## Environment
10
11 Default environment is production. To run against dev environemt:
12
13 ```bash
14 $ cargo run -p smbcloud-cli -- -e dev account login
15 ```
16
17 Example debug the dev environment:
18
19 ```bash
20 $ cargo debugger --package smbcloud-cli -- -e dev account login
21 ```
22
23 ## Run from different directory
24
25 To run from a different directory, use the `--manifest-path` flag and `--package` flag. :
26
27 ```bash
28 $ cargo debugger --manifest-path .../path/to/smbcloud-cli/Cargo.toml --package smbcloud-cli -- -e dev account login
29 ```