You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Run `poetry run pip install --verbose python/pminit ./`. This command automatically compiles the project and installs the project as well as dependencies into the poetry virtualenv.
64
+
2. Run `poetry install`. This command automatically compiles the project and installs the project as well as dependencies into the poetry virtualenv.
65
+
66
+
If you are using VSCode, you can just press <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>B</kbd> to [run build task](https://code.visualstudio.com/docs/editor/tasks#_custom-tasks) - We have [the `tasks.json` file configured for you](.vscode/tasks.json).
62
67
63
68
## Running tests
64
69
1. Compile the project
65
70
2. Install development dependencies: `poetry install --no-root --only=dev`
66
71
3. From the root directory, run `poetry run pytest ./tests/python`
67
72
73
+
For VSCode users, similar to the Build Task, we have a Test Task ready to use.
74
+
68
75
## Using the library
69
76
70
77
### Install from [PyPI](https://pypi.org/project/pythonmonkey/)
@@ -99,6 +106,14 @@ Type "help", "copyright", "credits" or "license" for more information.
99
106
100
107
Alternatively, you can build a `wheel` package by running `poetry build --format=wheel`, and install it by `pip install dist/*.whl`.
101
108
109
+
## Debugging Steps
110
+
111
+
1. [build the project locally](#build-instructions)
112
+
2. To use gdb, run `poetry run gdb python`.
113
+
See [Python Wiki: DebuggingWithGdb](https://wiki.python.org/moin/DebuggingWithGdb)
114
+
115
+
If you are using VSCode, it's more convenient to debug in [VSCode's built-in debugger](https://code.visualstudio.com/docs/editor/debugging). Simply press <kbd>F5</kbd> on an open Python to start debugging - We have [the `launch.json`file configured for you](.vscode/launch.json).
0 commit comments